Class: Tenma::Prepare::Config
- Inherits:
-
Object
- Object
- Tenma::Prepare::Config
- Defined in:
- lib/tenma/prepare/config.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #github_reponame ⇒ Object
-
#initialize(path) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(path) ⇒ Config
Returns a new instance of Config.
9 10 11 12 |
# File 'lib/tenma/prepare/config.rb', line 9 def initialize(path) @raw = Hashie::Mash.new(YAML.load(File.read(path))) validate! end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
7 8 9 |
# File 'lib/tenma/prepare/config.rb', line 7 def raw @raw end |
Instance Method Details
#github_reponame ⇒ Object
14 15 16 |
# File 'lib/tenma/prepare/config.rb', line 14 def github_reponame raw.github.owner + "/" + raw.github.repo end |