Class: Fhcap::CLI::Cluster

Inherits:
ThorBase
  • Object
show all
Defined in:
lib/fhcap/cluster.rb

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

Methods included from ReposHelper

#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

Methods included from ProvidersHelper

#provider_availability_zones, #provider_config, #provider_credentials, #provider_for, #provider_names, #provider_names_for, #provider_regions, #provider_type, #providers_config

Constructor Details

This class inherits a constructor from Fhcap::ThorBase

Instance Method Details

#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



85
86
87
88
# File 'lib/fhcap/cluster.rb', line 85

def destroy
  require "fhcap/tasks/cluster/destroy"
  Tasks::Cluster::Destroy.new(task_options(options.dup)).run
end

#info ⇒ Object



98
99
100
101
# File 'lib/fhcap/cluster.rb', line 98

def info
  require "fhcap/tasks/cluster/info"
  Tasks::Cluster::Info.new(task_options(options.dup)).run
end

#list ⇒ Object



105
106
107
108
# File 'lib/fhcap/cluster.rb', line 105

def list
  require "fhcap/tasks/cluster/list"
  Tasks::Cluster::List.new(task_options(options.dup)).run
end

#provision ⇒ Object



51
52
53
54
# File 'lib/fhcap/cluster.rb', line 51

def provision
  require "fhcap/tasks/cluster/provision"
  Tasks::Cluster::Provision.new(task_options(options.dup)).run
end

#status ⇒ Object



69
70
71
72
# File 'lib/fhcap/cluster.rb', line 69

def status
  require "fhcap/tasks/cluster/status"
  Tasks::Cluster::Status.new(task_options(options.dup)).run
end

#test ⇒ Object



60
61
62
63
# File 'lib/fhcap/cluster.rb', line 60

def test
  require "fhcap/tasks/cluster/test"
  Tasks::Cluster::Test.new(task_options(options.dup)).run
end