Class: Travis::Cli::Config

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/travis/cli/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shell, remote, options) ⇒ Config

Returns a new instance of Config.



11
12
13
14
15
# File 'lib/travis/cli/config.rb', line 11

def initialize(shell, remote, options)
  @remote = remote
  @options = options
  @shell = shell
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/travis/cli/config.rb', line 9

def options
  @options
end

#remoteObject (readonly)

Returns the value of attribute remote.



9
10
11
# File 'lib/travis/cli/config.rb', line 9

def remote
  @remote
end

#shellObject (readonly)

Returns the value of attribute shell.



9
10
11
# File 'lib/travis/cli/config.rb', line 9

def shell
  @shell
end

Instance Method Details

#invokeObject



17
18
19
20
# File 'lib/travis/cli/config.rb', line 17

def invoke
  store
  push
end