lib/utopia/command/environment.rb
def update_environment(root, name = self.environment_name)
				environment_path = File.join(root, "config", "#{name}.yaml")
				FileUtils.mkpath File.dirname(environment_path)
				
				store = YAML::Store.new(environment_path)
				
				store.transaction do
					yield store, name, environment_path
				end
			end
# Setup `config/environment.yaml` according to specified options.
Setup `config/environment.yaml` according to specified options.
Setup ` config / environment . yaml ` according to specified options .
def update_environment(root, name = self.environment_name)
				environment_path = File.join(root, "config", "#{name}.yaml")
				FileUtils.mkpath File.dirname(environment_path)
				store = YAML::Store.new(environment_path)
				store.transaction do
					yield store, name, environment_path
				end
			end
def update_environment ( root , name = self . environment_name ) environment_path = File . join ( root , "config" , "#{name}.yaml" ) FileUtils . mkpath File . dirname ( environment_path ) store = YAML :: Store . new ( environment_path ) store . transaction do yield store , name , environment_path end end
Setup `config/environment.yaml` according to specified options.
Setup ` config / environment . yaml ` according to specified options .
root
name
environment_name