Class: Remocon::Command::Push

Inherits:
Object
  • Object
show all
Defined in:
lib/remocon/command/push_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Push

Returns a new instance of Push.



8
9
10
11
# File 'lib/remocon/command/push_command.rb', line 8

def initialize(opts)
  @config = Remocon::Config.new(opts)
  @cmd_opts = { validate_only: false }
end

Instance Attribute Details

#cmd_optsObject (readonly)

Returns the value of attribute cmd_opts.



6
7
8
# File 'lib/remocon/command/push_command.rb', line 6

def cmd_opts
  @cmd_opts
end

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/remocon/command/push_command.rb', line 6

def config
  @config
end

Instance Method Details

#runObject



13
14
15
# File 'lib/remocon/command/push_command.rb', line 13

def run
  do_request
end