Class: Doggy::CLI

Inherits:
Thor
  • Object
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_versionObject



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

#syncObject



34
35
36
# File 'lib/doggy/cli.rb', line 34

def sync
  CLI::Push.new.sync_changes
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