Class: Tenma::Prepare::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/tenma/prepare/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



8
9
10
# File 'lib/tenma/prepare/context.rb', line 8

def client
  @client
end

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/tenma/prepare/context.rb', line 8

def config
  @config
end

#milestoneObject (readonly)

Returns the value of attribute milestone.



8
9
10
# File 'lib/tenma/prepare/context.rb', line 8

def milestone
  @milestone
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/tenma/prepare/context.rb', line 8

def options
  @options
end

#release_managerObject (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(options.raw.config_file)
  @client = load_github_client
  @milestone = load_milestone!
  @release_manager = load_release_manager!

  self
end