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



74
75
76
77
78
79
80
# File 'lib/duple/cli/config.rb', line 74

def all
  environments
  groups
  pre_refresh
  post_refresh
  other
end

#environmentsObject



49
50
51
# File 'lib/duple/cli/config.rb', line 49

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

#groupsObject



54
55
56
# File 'lib/duple/cli/config.rb', line 54

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

#otherObject



69
70
71
# File 'lib/duple/cli/config.rb', line 69

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

#post_refreshObject



64
65
66
# File 'lib/duple/cli/config.rb', line 64

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

#pre_refreshObject



59
60
61
# File 'lib/duple/cli/config.rb', line 59

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