Class: Dri::Commands::Rm

Inherits:
Thor
  • Object
show all
Defined in:
lib/dri/commands/rm.rb,
lib/dri/commands/rm/emoji.rb,
lib/dri/commands/rm/profile.rb,
lib/dri/commands/rm/reports.rb

Defined Under Namespace

Classes: Emoji, Profile, Reports

Instance Method Summary collapse

Instance Method Details

#emojiObject



37
38
39
40
41
42
43
44
# File 'lib/dri/commands/rm.rb', line 37

def emoji(*)
  if options[:help]
    invoke :help, ['emoji']
  else
    require_relative 'rm/emoji'
    Dri::Commands::Rm::Emoji.new(options).execute
  end
end

#profileObject



13
14
15
16
17
18
19
20
# File 'lib/dri/commands/rm.rb', line 13

def profile(*)
  if options[:help]
    invoke :help, ['profile']
  else
    require_relative 'rm/profile'
    Dri::Commands::Rm::Profile.new(options).execute
  end
end

#reportsObject



25
26
27
28
29
30
31
32
# File 'lib/dri/commands/rm.rb', line 25

def reports(*)
  if options[:help]
    invoke :help, ['reports']
  else
    require_relative 'rm/reports'
    Dri::Commands::Rm::Reports.new(options).execute
  end
end