Class: Default

Inherits:
Thor
  • Object
show all
Extended by:
Forwardable
Includes:
Appium::Thor::Helpers
Defined in:
lib/appium_thor/commands/init.rb,
lib/appium_thor/commands/commands.rb

Overview

Define Thor tasks in the top level Default namespace.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Appium::Thor::Helpers

#_build_gem, #_bump, #_install, #_publish, #_uninstall, #remove_non_ascii_from_cwd, #sh, #tag_exists, #update_release_notes, #version, #version_rgx

Constructor Details

#initialize(args = [], options = {}, config = {}) ⇒ Default

Returns a new instance of Default.



11
12
13
14
15
# File 'lib/appium_thor/commands/init.rb', line 11

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

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/appium_thor/commands/commands.rb', line 68

def self.exit_on_failure?
  true
end

Instance Method Details

#buildObject



40
41
42
# File 'lib/appium_thor/commands/commands.rb', line 40

def build
  _build_gem
end

#bumpObject



25
26
27
# File 'lib/appium_thor/commands/commands.rb', line 25

def bump
  _bump :z
end

#bumpxObject



15
16
17
# File 'lib/appium_thor/commands/commands.rb', line 15

def bumpx
  _bump :x
end

#bumpyObject



20
21
22
# File 'lib/appium_thor/commands/commands.rb', line 20

def bumpy
  _bump :y
end

#byteObject



64
65
66
# File 'lib/appium_thor/commands/commands.rb', line 64

def byte
  remove_non_ascii_from_cwd
end

#gem_installObject



54
55
56
# File 'lib/appium_thor/commands/commands.rb', line 54

def gem_install
  _install
end

#gem_uninstallObject



47
48
49
# File 'lib/appium_thor/commands/commands.rb', line 47

def gem_uninstall
  _uninstall
end

#infoObject



4
5
6
7
8
9
10
11
12
# File 'lib/appium_thor/commands/commands.rb', line 4

def info
  puts <<-MSG
  gem_name: #{gem_name}
 github_name: #{github_name}
github_owner: #{github_owner}
    branch: #{branch}
version_file: #{version_file}
  MSG
end

#notesObject



59
60
61
# File 'lib/appium_thor/commands/commands.rb', line 59

def notes
  update_release_notes
end

#publishObject



30
31
32
# File 'lib/appium_thor/commands/commands.rb', line 30

def publish
  _publish
end

#releaseObject



35
36
37
# File 'lib/appium_thor/commands/commands.rb', line 35

def release
  _publish
end