Class: Pulsar::CopyEnvironmentFile
- Inherits:
-
Object
- Object
- Pulsar::CopyEnvironmentFile
- Includes:
- Interactor, Validator
- Defined in:
- lib/pulsar/interactors/copy_environment_file.rb
Instance Method Summary collapse
Methods included from Validator
#context_fail!, included, #validable_properties, #validate_context!
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/pulsar/interactors/copy_environment_file.rb', line 10 def call env_file = "#{context.config_path}/apps/#{context.application}/#{context.environment}.rb" FileUtils.mkdir_p(context.cap_deploy_path) FileUtils.cp(env_file, context.environment_file_path) rescue context_fail! $!. end |