Class: Duple::CLI::Config

Inherits:
Thor
  • Object
show all
Includes:
Helpers
Defined in:
lib/duple/cli/config.rb

Overview

Options:

-c, [--config=CONFIG]  # The location of the config file.

Instance Method Summary collapse

Methods included from Helpers

included

Instance Method Details

#allObject



77
78
79
80
81
82
83
# File 'lib/duple/cli/config.rb', line 77

def all
  environments
  groups
  pre_refresh
  post_refresh
  other
end

#environmentsObject



52
53
54
# File 'lib/duple/cli/config.rb', line 52

def environments
  print_hash('Environments', config.environments)
end

#groupsObject



57
58
59
# File 'lib/duple/cli/config.rb', line 57

def groups
  print_hash('Groups', config.groups)
end

#otherObject



72
73
74
# File 'lib/duple/cli/config.rb', line 72

def other
  print_hash('Other Options', config.other_options)
end

#post_refreshObject



67
68
69
# File 'lib/duple/cli/config.rb', line 67

def post_refresh
  print_tasks('Post-Refresh Tasks', config.post_refresh_tasks)
end

#pre_refreshObject



62
63
64
# File 'lib/duple/cli/config.rb', line 62

def pre_refresh
  print_tasks('Pre-Refresh Tasks', config.pre_refresh_tasks)
end