Class: Gem::Release::Cmds::Runner

Inherits:
Struct
  • Object
show all
Defined in:
lib/gem/release/cmds/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#args=(value) ⇒ Object

Sets the attribute args

Parameters:

  • value (Object)

    the value to set the attribute args to.

Returns:

  • (Object)

    the newly set value



6
7
8
# File 'lib/gem/release/cmds/runner.rb', line 6

def args=(value)
  @args = value
end

#context=(value) ⇒ Object

Sets the attribute context

Parameters:

  • value (Object)

    the value to set the attribute context to.

Returns:

  • (Object)

    the newly set value



6
7
8
# File 'lib/gem/release/cmds/runner.rb', line 6

def context=(value)
  @context = value
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/gem/release/cmds/runner.rb', line 6

def name
  @name
end

#opts=(value) ⇒ Object

Sets the attribute opts

Parameters:

  • value (Object)

    the value to set the attribute opts to.

Returns:

  • (Object)

    the newly set value



6
7
8
# File 'lib/gem/release/cmds/runner.rb', line 6

def opts=(value)
  @opts = value
end

Instance Method Details

#runObject



7
8
9
10
# File 'lib/gem/release/cmds/runner.rb', line 7

def run
  run_cmd
  success
end