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

30 lines (20 sloc) 0.577 kb
require File.expand_path('../lib/opscode_deploy', __FILE__)
module OpscodeDeploy
class PushEnv < Chef::Knife
include EnvironmentNames
category "OPSCODE DEPLOYMENT"
K = Chef::Knife
banner "knife env push OPSCODE_ENV"
deps do
require 'chef/knife/data_bag_from_file'
K::DataBagFromFile.load_deps
end
def run
get_env_from_args!
dbff = K::DataBagFromFile.new
json_file = repo_file("data_bags/environments/#{environment}.json")
dbff.name_args = %W{environments #{json_file}}
dbff.run
end
end
end
Jump to Line
Something went wrong with that request. Please try again.