Skip to content

Commit

Permalink
Merge pull request #331 from itamae-kitchen/feature/tmp-dir-arg
Browse files Browse the repository at this point in the history
Add --tmp-dir to cli options
  • Loading branch information
sue445 authored Feb 6, 2021
2 parents f584b90 + 2e4ee5a commit 9dbb14e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/itamae/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def self.define_exec_options
option :log_level, type: :string, aliases: ['-l'], default: 'info'
option :color, type: :boolean, default: true
option :config, type: :string, aliases: ['-c']
option :tmp_dir, type: :string, aliases: ['-t'], default: "/tmp/itamae_tmp"
end

def self.options
Expand Down
2 changes: 1 addition & 1 deletion lib/itamae/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(backend, options)
prepare_handler

@node = create_node
@tmpdir = "/tmp/itamae_tmp"
@tmpdir = options[:tmp_dir]
@children = RecipeChildren.new
@diff = false

Expand Down

0 comments on commit 9dbb14e

Please sign in to comment.