Class: Fhcap::CLI::Cluster
Instance Attribute Summary
Attributes inherited from ThorBase
#config, #thor
Instance Method Summary
collapse
Methods inherited from ThorBase
add_shared_option, chef_server_names, cluster_template_names, config_key_collection, #initialize, provider_names, provider_names_for, repo_names, run_cmd, run_knife_cmd, shared_options
#find_cluster, #find_cluster_pwds, #find_cluster_pwds_with_repo, #find_cluster_with_repo, #find_data_bag, #find_data_bag_item, #find_environment, #find_repo_item, #find_role, #get_cookbook_deps, #get_cookbook_meta, #get_cookbook_versions, #get_cookbooks, #get_entry_dependencies, #get_modified_cookbooks, #is_dirty?, #modified?, #repo_cfg, #repo_clusters_dir, #repo_cookbook_paths, #repo_dir, #repo_names, #repo_paths, #repos_config, #repos_dir, #run_inside_repo_dir
#provider_availability_zones, #provider_config, #provider_credentials, #provider_for, #provider_names, #provider_names_for, #provider_regions, #provider_type, #providers_config
Instance Method Details
#bootstrap_server ⇒ Object
133
134
135
136
|
# File 'lib/fhcap/cluster.rb', line 133
def bootstrap_server
require 'fhcap/tasks/cluster/bootstrap_server'
Tasks::Cluster::BootstrapServer.new(task_options(options.dup)).run
end
|
#chef_provision ⇒ Object
122
123
124
125
|
# File 'lib/fhcap/cluster.rb', line 122
def chef_provision
require 'fhcap/tasks/cluster/chef_provisioning_task'
Tasks::Cluster::ChefProvisioningTask.new(task_options(options.dup)).run
end
|
#create ⇒ Object
31
32
33
34
|
# File 'lib/fhcap/cluster.rb', line 31
def create
require "fhcap/tasks/cluster/create"
Tasks::Cluster::Create.new(task_options(options.dup)).run
end
|
#destroy ⇒ Object
86
87
88
89
|
# File 'lib/fhcap/cluster.rb', line 86
def destroy
require "fhcap/tasks/cluster/destroy"
Tasks::Cluster::Destroy.new(task_options(options.dup)).run
end
|
#info ⇒ Object
99
100
101
102
|
# File 'lib/fhcap/cluster.rb', line 99
def info
require "fhcap/tasks/cluster/info"
Tasks::Cluster::Info.new(task_options(options.dup)).run
end
|
#list ⇒ Object
106
107
108
109
|
# File 'lib/fhcap/cluster.rb', line 106
def list
require "fhcap/tasks/cluster/list"
Tasks::Cluster::List.new(task_options(options.dup)).run
end
|
#provision ⇒ Object
52
53
54
55
|
# File 'lib/fhcap/cluster.rb', line 52
def provision
require "fhcap/tasks/cluster/provision"
Tasks::Cluster::Provision.new(task_options(options.dup)).run
end
|
#status ⇒ Object
70
71
72
73
|
# File 'lib/fhcap/cluster.rb', line 70
def status
require "fhcap/tasks/cluster/status"
Tasks::Cluster::Status.new(task_options(options.dup)).run
end
|
#test ⇒ Object
61
62
63
64
|
# File 'lib/fhcap/cluster.rb', line 61
def test
require "fhcap/tasks/cluster/test"
Tasks::Cluster::Test.new(task_options(options.dup)).run
end
|