Sha256: 329c67f42e599cc76d048c9ed6d27a8c7ffa77b91d7bd876d67901bd1abe2ea5

Contents?: true

Size: 472 Bytes

Versions: 20

Compression:

Stored size: 472 Bytes

Contents

require 'mattock/command-task'

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

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

    def task_args
      [{task_name => index_html}]
    end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
corundum-0.3.8 lib/corundum/browser-task.rb
corundum-0.3.7 lib/corundum/browser-task.rb
corundum-0.3.6 lib/corundum/browser-task.rb
corundum-0.3.5 lib/corundum/browser-task.rb
corundum-0.3.4 lib/corundum/browser-task.rb
corundum-0.3.3 lib/corundum/browser-task.rb
corundum-0.3.2 lib/corundum/browser-task.rb
corundum-0.3.1 lib/corundum/browser-task.rb
corundum-0.3 lib/corundum/browser-task.rb
corundum-0.2 lib/corundum/browser-task.rb
corundum-0.1.4 lib/corundum/browser-task.rb
corundum-0.1.3 lib/corundum/browser-task.rb
corundum-0.1.2 lib/corundum/browser-task.rb
corundum-0.1.0 lib/corundum/browser-task.rb
corundum-0.0.31 lib/corundum/browser-task.rb
corundum-0.0.30 lib/corundum/browser-task.rb
corundum-0.0.29 lib/corundum/browser-task.rb
corundum-0.0.28 lib/corundum/browser-task.rb
corundum-0.0.27 lib/corundum/browser-task.rb
corundum-0.0.26 lib/corundum/browser-task.rb