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



13
14
15
# File 'lib/doggy/cli.rb', line 13

def __print_version
  puts Doggy::VERSION
end

#delete(*ids) ⇒ Object



25
26
27
# File 'lib/doggy/cli.rb', line 25

def delete(*ids)
  CLI::Delete.new.run(ids)
end

#edit(id) ⇒ Object



78
79
80
# File 'lib/doggy/cli.rb', line 78

def edit(id)
  CLI::Edit.new(options.dup, id).run
end

#mute(*ids) ⇒ Object



60
61
62
# File 'lib/doggy/cli.rb', line 60

def mute(*ids)
  CLI::Mute.new(options.dup, ids).run
end

#pull(*ids) ⇒ Object



19
20
21
# File 'lib/doggy/cli.rb', line 19

def pull(*ids)
  CLI::Pull.new(options.dup, ids).run
end

#push(*ids) ⇒ Object



47
48
49
# File 'lib/doggy/cli.rb', line 47

def push(*ids)
  CLI::Push.new.push_all(ids)
end

#syncObject



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

def sync
  CLI::Push.new.sync_changes
end

#unmute(*ids) ⇒ Object



72
73
74
# File 'lib/doggy/cli.rb', line 72

def unmute(*ids)
  CLI::Unmute.new(options.dup, ids).run
end