Class: Ebfly::Config
- Inherits:
-
Thor
- Object
- Thor
- Ebfly::Config
show all
- Includes:
- Command
- Defined in:
- lib/ebfly/command/config.rb
Constant Summary
Constants included
from Command
Ebfly::Command::PREDEFINED_SOLUTION_STACKS, Ebfly::Command::SUPPORTED_SOLUTION_STACKS
Instance Method Summary
collapse
Methods included from Command
#debug, #eb, #env_name, #exist_command?, #run, #s3, #s3_bucket, #solution_stack, #style_err, #tier
Instance Method Details
#add ⇒ Object
20
21
22
23
|
# File 'lib/ebfly/command/config.rb', line 20
def add
ret = add_environment_config(options[:a], options[:e], options[:c])
debug(ret)
end
|
#copy ⇒ Object
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/ebfly/command/config.rb', line 38
def copy
app = options[:a]
env = options[:e]
src = options[:s]
puts ""
puts "=== Before ==="
config_vars = get_env_conf(app, env)
show_env_conf(app, env, config_vars)
src_config_vars = get_env_conf(app, src)
add_environment_config(app, env, src_config_vars)
puts ""
puts "=== After ==="
config_vars = get_env_conf(app, env)
show_env_conf(app, env, config_vars)
end
|
#rm ⇒ Object
29
30
31
32
|
# File 'lib/ebfly/command/config.rb', line 29
def rm
ret = remove_environment_config(options[:a], options[:e], options[:c])
debug(ret)
end
|
#show ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/ebfly/command/config.rb', line 8
def show
app = options[:a]
env = options[:e]
configs = get_env_conf(app, env)
show_env_conf(app, env, configs)
end
|