Module: GClouder::Config::Files::Project

Includes:
CLIArgs, Helpers
Defined in:
lib/gclouder/config/files/project.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#hash_to_args, #module_exists?, #to_arg, #to_deep_merge_hash, #valid_json?

Methods included from CLIArgs

check, #cli_args, cli_args, load, valid_resources

Class Method Details

.included(klass) ⇒ Object



10
11
12
# File 'lib/gclouder/config/files/project.rb', line 10

def self.included(klass)
  klass.extend project
end

.projectObject



18
19
20
# File 'lib/gclouder/config/files/project.rb', line 18

def self.project
  to_deep_merge_hash(YAML.load_file(cli_args[:config]))
end

Instance Method Details

#projectObject



14
15
16
# File 'lib/gclouder/config/files/project.rb', line 14

def project
  Project.project
end