lib/berkshelf/cli.rb in berkshelf-2.0.16 vs lib/berkshelf/cli.rb in berkshelf-2.0.17
- old
+ new
@@ -238,9 +238,14 @@
banner: 'PATH'
method_option :ssl_verify,
type: :boolean,
default: nil,
desc: 'Disable/Enable SSL verification when locking cookbooks.'
+ method_option :from_file,
+ type: :string,
+ desc: 'overwrite environment attributes when using apply using local environment file',
+ aliases: '-f',
+ banner: 'PATH'
desc 'apply ENVIRONMENT', 'Apply the cookbook version locks from Berksfile.lock to a Chef environment'
def apply(environment_name)
berksfile = ::Berkshelf::Berksfile.from_file(options[:berksfile])
lock_options = Hash[options].symbolize_keys