Class: Binpkgbot::Tasks::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/binpkgbot/tasks/base.rb

Direct Known Subclasses

Include, Install, Run, Upgrade

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config: nil, **options) ⇒ Base

Returns a new instance of Base.



4
5
6
7
# File 'lib/binpkgbot/tasks/base.rb', line 4

def initialize(config: nil, **options)
  @config = config
  @options = options
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



9
10
11
# File 'lib/binpkgbot/tasks/base.rb', line 9

def config
  @config
end

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/binpkgbot/tasks/base.rb', line 9

def options
  @options
end

Instance Method Details

#executeObject



11
12
13
14
# File 'lib/binpkgbot/tasks/base.rb', line 11

def execute
  puts "==> #{self.class}: #{options.inspect}"
  run
end