Sha256: 7d4d9f3c6cfb9f037d9f7393a29e286556427065640a91df7ae732c0eecfea8a

Contents?: true

Size: 442 Bytes

Versions: 15

Compression:

Stored size: 442 Bytes

Contents

require 'mattock/command-task'

module Corundum
  class BrowserTask < Mattock::CommandTask
    setting(:browser, "chromium")
    setting(:index_html)
    setting(:task_name, "view")

    def default_configuration(parent)
      self.browser = parent.browser
    end

    def task_args
      [{task_name => index_html}]
    end

    def resolve_configuration
      self.command = Mattock::CommandLine.new(browser, index_html)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
corundum-0.0.24 lib/corundum/browser-task.rb
corundum-0.0.23 lib/corundum/browser-task.rb
corundum-0.0.22 lib/corundum/browser-task.rb
corundum-0.0.20 lib/corundum/browser-task.rb
corundum-0.0.19 lib/corundum/browser-task.rb
corundum-0.0.18 lib/corundum/browser-task.rb
corundum-0.0.17 lib/corundum/browser-task.rb
corundum-0.0.16 lib/corundum/browser-task.rb
corundum-0.0.15 lib/corundum/browser-task.rb
corundum-0.0.13 lib/corundum/browser-task.rb
corundum-0.0.12 lib/corundum/browser-task.rb
corundum-0.0.10 lib/corundum/browser-task.rb
corundum-0.0.9 lib/corundum/browser-task.rb
corundum-0.0.8 lib/corundum/browser-task.rb
corundum-0.0.7 lib/corundum/browser-task.rb