Class: Dri::Commands::Fetch

Inherits:
Thor
  • Object
show all
Defined in:
lib/dri/commands/fetch.rb,
lib/dri/commands/fetch/triaged.rb,
lib/dri/commands/fetch/failures.rb,
lib/dri/commands/fetch/runbooks.rb,
lib/dri/commands/fetch/pipelines.rb,
lib/dri/commands/fetch/testcases.rb,
lib/dri/commands/fetch/feature_flags.rb

Defined Under Namespace

Classes: Failures, FeatureFlags, Pipelines, Runbooks, Testcases, Triaged

Instance Method Summary collapse

Instance Method Details

#failuresObject



57
58
59
60
61
62
63
# File 'lib/dri/commands/fetch.rb', line 57

def failures(*)
  if options[:help]
    invoke :help, ['failures']
  else
    Dri::Commands::Fetch::Failures.new(options).execute
  end
end

#featureflagsObject



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

def featureflags(*)
  if options[:help]
    invoke :help, ['featureflags']
  else
    Dri::Commands::Fetch::FeatureFlags.new(options).execute
  end
end

#pipelinesObject



70
71
72
73
74
# File 'lib/dri/commands/fetch.rb', line 70

def pipelines(*)
  return invoke :help, %w[pipelines] if options[:help]

  Dri::Commands::Fetch::Pipelines.new(options).execute
end

#runbooks(*args) ⇒ Object



80
81
82
83
84
# File 'lib/dri/commands/fetch.rb', line 80

def runbooks(*args)
  return invoke :help, %w[runbooks] if options[:help]

  Dri::Commands::Fetch::Runbooks.new(options).execute(folder: args.first)
end

#testcasesObject



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

def testcases(*)
  if options[:help]
    invoke :help, ['testcases']
  else
    Dri::Commands::Fetch::Testcases.new(options).execute
  end
end

#triagedObject



24
25
26
27
28
29
30
# File 'lib/dri/commands/fetch.rb', line 24

def triaged(*)
  if options[:help]
    invoke :help, ['triaged']
  else
    Dri::Commands::Fetch::Triaged.new(options).execute
  end
end