Class: Default

Inherits:
Thor
  • Object
show all
Extended by:
Forwardable
Includes:
Appium::Thor::Docs, 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.

Instance Method Summary collapse

Methods included from Appium::Thor::Docs

#globs, #last_sha, #mobj_to_md, #run, #space

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.



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

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

Instance Method Details

#buildObject



37
38
39
# File 'lib/appium_thor/commands/commands.rb', line 37

def build
  _build_gem
end

#bumpObject



22
23
24
# File 'lib/appium_thor/commands/commands.rb', line 22

def bump
  _bump :z
end

#bumpxObject



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

def bumpx
  _bump :x
end

#bumpyObject



17
18
19
# File 'lib/appium_thor/commands/commands.rb', line 17

def bumpy
  _bump :y
end

#byteObject



66
67
68
# File 'lib/appium_thor/commands/commands.rb', line 66

def byte
  remove_non_ascii_from_cwd
end

#docsObject



56
57
58
# File 'lib/appium_thor/commands/commands.rb', line 56

def docs
  instance_eval &docs_block if docs_block
end

#gem_installObject



51
52
53
# File 'lib/appium_thor/commands/commands.rb', line 51

def gem_install
  _install
end

#gem_uninstallObject



44
45
46
# File 'lib/appium_thor/commands/commands.rb', line 44

def gem_uninstall
  _uninstall
end

#infoObject



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

def info
  puts "     gem_name: #{gem_name}\n"    +
       "  github_name: #{github_name}\n" +
       " github_owner: #{github_owner}\n"
       " version_file: #{version_file}"
end

#notesObject



61
62
63
# File 'lib/appium_thor/commands/commands.rb', line 61

def notes
  update_release_notes
end

#publishObject



27
28
29
# File 'lib/appium_thor/commands/commands.rb', line 27

def publish
  _publish
end

#releaseObject



32
33
34
# File 'lib/appium_thor/commands/commands.rb', line 32

def release
  _publish
end