Class: Doggy::CLI
- Inherits:
-
Thor
show all
- Includes:
- Thor::Actions
- Defined in:
- lib/doggy/cli.rb
Defined Under Namespace
Classes: Delete, Edit, Mute, Pull, Push, Unmute
Instance Method Summary
collapse
Instance Method Details
#__print_version ⇒ Object
12
13
14
|
# File 'lib/doggy/cli.rb', line 12
def __print_version
puts Doggy::VERSION
end
|
#delete(*ids) ⇒ Object
24
25
26
|
# File 'lib/doggy/cli.rb', line 24
def delete(*ids)
CLI::Delete.new.run(ids)
end
|
#edit(id) ⇒ Object
77
78
79
|
# File 'lib/doggy/cli.rb', line 77
def edit(id)
CLI::Edit.new(options.dup, id).run
end
|
#mute(*ids) ⇒ Object
59
60
61
|
# File 'lib/doggy/cli.rb', line 59
def mute(*ids)
CLI::Mute.new(options.dup, ids).run
end
|
#pull(*ids) ⇒ Object
18
19
20
|
# File 'lib/doggy/cli.rb', line 18
def pull(*ids)
CLI::Pull.new(options.dup, ids).run
end
|
#push(*ids) ⇒ Object
46
47
48
|
# File 'lib/doggy/cli.rb', line 46
def push(*ids)
CLI::Push.new.push_all(ids)
end
|
#unmute(*ids) ⇒ Object
71
72
73
|
# File 'lib/doggy/cli.rb', line 71
def unmute(*ids)
CLI::Unmute.new(options.dup, ids).run
end
|