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
185
186
187
188
|
# File 'lib/fhcap/cluster.rb', line 185
def bootstrap_server
require 'fhcap/tasks/cluster/bootstrap_server'
Tasks::Cluster::BootstrapServer.new(task_options(options.dup)).run
end
|
#chef_provision ⇒ Object
174
175
176
177
|
# File 'lib/fhcap/cluster.rb', line 174
def chef_provision
require 'fhcap/tasks/cluster/chef_provisioning_task'
Tasks::Cluster::ChefProvisioningTask.new(task_options(options.dup)).run
end
|
#create ⇒ Object
52
53
54
55
56
57
|
# File 'lib/fhcap/cluster.rb', line 52
def create
require "fhcap/tasks/cluster/generate"
require "fhcap/tasks/cluster/create"
Tasks::Cluster::Generate.new(task_options(options.dup)).run if options[:generate]
Tasks::Cluster::Create.new(task_options(options.dup)).run
end
|
#create_dns_records ⇒ Object
66
67
68
69
|
# File 'lib/fhcap/cluster.rb', line 66
def create_dns_records
require "fhcap/tasks/cluster/create_dns_records"
Tasks::Cluster::CreateDNSRecords.new(task_options(options.dup)).run
end
|
#destroy ⇒ Object
122
123
124
125
|
# File 'lib/fhcap/cluster.rb', line 122
def destroy
require "fhcap/tasks/cluster/destroy"
Tasks::Cluster::Destroy.new(task_options(options.dup)).run
end
|
#generate ⇒ Object
34
35
36
37
|
# File 'lib/fhcap/cluster.rb', line 34
def generate
require "fhcap/tasks/cluster/generate"
Tasks::Cluster::Generate.new(task_options(options.dup)).run
end
|
#info ⇒ Object
135
136
137
138
|
# File 'lib/fhcap/cluster.rb', line 135
def info
require "fhcap/tasks/cluster/info"
Tasks::Cluster::Info.new(task_options(options.dup)).run
end
|
#list ⇒ Object
142
143
144
145
|
# File 'lib/fhcap/cluster.rb', line 142
def list
require "fhcap/tasks/cluster/list"
Tasks::Cluster::List.new(task_options(options.dup)).run
end
|
#provision ⇒ Object
88
89
90
91
|
# File 'lib/fhcap/cluster.rb', line 88
def provision
require "fhcap/tasks/cluster/provision"
Tasks::Cluster::Provision.new(task_options(options.dup)).run
end
|
#status ⇒ Object
106
107
108
109
|
# File 'lib/fhcap/cluster.rb', line 106
def status
require "fhcap/tasks/cluster/status"
Tasks::Cluster::Status.new(task_options(options.dup)).run
end
|
#test ⇒ Object
97
98
99
100
|
# File 'lib/fhcap/cluster.rb', line 97
def test
require "fhcap/tasks/cluster/test"
Tasks::Cluster::Test.new(task_options(options.dup)).run
end
|