Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (16 sloc) 0.45 kb
require File.expand_path('../lib/opscode_deploy', __FILE__)
module OpscodeDeploy
class EditEnv < Chef::Knife
include EnvironmentNames
category "OPSCODE DEPLOYMENT"
banner "knife edit env [OPSCODE_ENV]"
deps do
end
def run
get_env_from_args!
data_bag_file = repo_file("data_bags/environments/#{environment}.json")
ui.msg(data_bag_file)
exec "#{ENV['EDITOR']} #{data_bag_file}"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.