Class: Default
Overview
Define Thor tasks in the top level Default namespace.
Instance Method Summary
collapse
#globs, #last_sha, #mobj_to_md, #run, #space
#_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
@cfg = Appium::Thor::Config.instance
end
|
Instance Method Details
#build ⇒ Object
39
40
41
|
# File 'lib/appium_thor/commands/commands.rb', line 39
def build
_build_gem
end
|
#bump ⇒ Object
24
25
26
|
# File 'lib/appium_thor/commands/commands.rb', line 24
def bump
_bump :z
end
|
#bumpx ⇒ Object
14
15
16
|
# File 'lib/appium_thor/commands/commands.rb', line 14
def bumpx
_bump :x
end
|
#bumpy ⇒ Object
19
20
21
|
# File 'lib/appium_thor/commands/commands.rb', line 19
def bumpy
_bump :y
end
|
#byte ⇒ Object
68
69
70
|
# File 'lib/appium_thor/commands/commands.rb', line 68
def byte
remove_non_ascii_from_cwd
end
|
#docs ⇒ Object
58
59
60
|
# File 'lib/appium_thor/commands/commands.rb', line 58
def docs
instance_eval &docs_block if docs_block
end
|
#gem_install ⇒ Object
53
54
55
|
# File 'lib/appium_thor/commands/commands.rb', line 53
def gem_install
_install
end
|
#gem_uninstall ⇒ Object
46
47
48
|
# File 'lib/appium_thor/commands/commands.rb', line 46
def gem_uninstall
_uninstall
end
|
#info ⇒ Object
4
5
6
7
8
9
10
11
|
# 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}
version_file: #{version_file}
MSG
end
|
#notes ⇒ Object
63
64
65
|
# File 'lib/appium_thor/commands/commands.rb', line 63
def notes
update_release_notes
end
|
#publish ⇒ Object
29
30
31
|
# File 'lib/appium_thor/commands/commands.rb', line 29
def publish
_publish
end
|
#release ⇒ Object
34
35
36
|
# File 'lib/appium_thor/commands/commands.rb', line 34
def release
_publish
end
|