Sha256: d95340cb8e44d2adba56d95b9047618ee5f47d720d41387577acdb8d17cc3c4d

Contents?: true

Size: 463 Bytes

Versions: 7

Compression:

Stored size: 463 Bytes

Contents

# Define Thor tasks in the top level Default namespace.
class Default < Thor
  extend Forwardable
  include Appium::Thor::Helpers

  # For each possible option method, delegate calls to the config instance
  no_commands do
    def_delegators(:@cfg, *Appium::Thor::Config.options)
  end

  def initialize(args = [], options = {}, config = {})
    super
    # Aquire reference to the config defined in the Thorfile
    @cfg = Appium::Thor::Config.instance
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appium_thor-2.1.0 lib/appium_thor/commands/init.rb
appium_thor-2.0.6 lib/appium_thor/commands/init.rb
appium_thor-2.0.5 lib/appium_thor/commands/init.rb
appium_thor-2.0.4 lib/appium_thor/commands/init.rb
appium_thor-2.0.2 lib/appium_thor/commands/init.rb
appium_thor-2.0.1 lib/appium_thor/commands/init.rb
appium_thor-2.0.0 lib/appium_thor/commands/init.rb