Module: Binpkgbot::Tasks::Concern::Emerge

Included in:
Install, Run, Upgrade
Defined in:
lib/binpkgbot/tasks/concern/emerge.rb

Instance Method Summary collapse

Instance Method Details

#emerge(atom, *args, ephemeral: !@options[:persist],, use: @options[:use], accept_keywords: @options[:accept_keywords], unmasks: @options[:unmasks], masks: @options[:masks], script: nil) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/binpkgbot/tasks/concern/emerge.rb', line 11

def emerge(atom, *args, ephemeral: !@options[:persist], use: @options[:use], accept_keywords: @options[:accept_keywords], unmasks: @options[:unmasks], masks: @options[:masks], script: nil)
  EmergeRunner.new(
    atom, *args,
    ephemeral: ephemeral,
    use: use,
    accept_keywords: accept_keywords,
    unmasks: unmasks,
    masks: masks,
    config: @config,
    script: script,
  ).run
end

#emerge_runner(script, **options) ⇒ Object



7
8
9
# File 'lib/binpkgbot/tasks/concern/emerge.rb', line 7

def emerge_runner(script, **options)
  emerge(nil, script: script, **options)
end