Class: Anvil::App
- Inherits:
-
SubCommandBase
show all
- Defined in:
- lib/anvil/app.rb,
lib/anvil/app/env.rb,
lib/anvil/app/scale.rb,
lib/anvil/app/deploy.rb,
lib/anvil/app/install.rb,
lib/anvil/app/host_scaler.rb,
lib/anvil/app/host_deployer.rb,
lib/anvil/app/host_installer.rb
Defined Under Namespace
Classes: Deploy, Env, HostDeployer, HostInstaller, HostScaler, Install, Scale
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#deploy(filename = "deploy.yml") ⇒ Object
72
73
74
75
|
# File 'lib/anvil/app.rb', line 72
def deploy filename = "deploy.yml"
configuration = YAML.load_file(filename)
Anvil::App::Deploy.new(configuration).call
end
|
#env(filename = "deploy.yml") ⇒ Object
28
29
30
31
32
|
# File 'lib/anvil/app.rb', line 28
def env filename = "deploy.yml"
configuration = YAML.load_file(filename)
secrets = read_secrets filename: options[:secrets], stdin: options[:secrets_stdin]
puts Anvil::App::Env.new(configuration, options[:host], secrets).call
end
|
#install(filename = "deploy.yml") ⇒ Object
54
55
56
57
58
|
# File 'lib/anvil/app.rb', line 54
def install filename = "deploy.yml"
configuration = YAML.load_file(filename)
secrets = read_secrets filename: options[:secrets], stdin: options[:secrets_stdin]
Anvil::App::Install.new(configuration, secrets).call
end
|
#scale(filename = "deploy.yml") ⇒ Object
83
84
85
86
|
# File 'lib/anvil/app.rb', line 83
def scale filename = "deploy.yml"
configuration = YAML.load_file(filename)
Anvil::App::Scale.new(configuration).call
end
|