Class: Tenma::Prepare::Context
- Inherits:
-
Object
- Object
- Tenma::Prepare::Context
- Defined in:
- lib/tenma/prepare/context.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#milestone ⇒ Object
readonly
Returns the value of attribute milestone.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#release_manager ⇒ Object
readonly
Returns the value of attribute release_manager.
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/tenma/prepare/context.rb', line 8 def client @client end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
8 9 10 |
# File 'lib/tenma/prepare/context.rb', line 8 def config @config end |
#milestone ⇒ Object (readonly)
Returns the value of attribute milestone.
8 9 10 |
# File 'lib/tenma/prepare/context.rb', line 8 def milestone @milestone end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/tenma/prepare/context.rb', line 8 def @options end |
#release_manager ⇒ Object (readonly)
Returns the value of attribute release_manager.
8 9 10 |
# File 'lib/tenma/prepare/context.rb', line 8 def release_manager @release_manager end |
Instance Method Details
#load!(opts) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/tenma/prepare/context.rb', line 10 def load!(opts) @options = Tenma::Prepare::Options.new(opts) @config = Tenma::Prepare::Config.new(.raw.config_file) @client = load_github_client @milestone = load_milestone! @release_manager = load_release_manager! self end |