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/featureflags.rb

Defined Under Namespace

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

Instance Method Summary collapse

Instance Method Details

#failuresObject



60
61
62
63
64
65
66
67
# File 'lib/dri/commands/fetch.rb', line 60

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

#featureflagsObject



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

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

#pipelinesObject



74
75
76
77
78
79
# File 'lib/dri/commands/fetch.rb', line 74

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

  require_relative 'fetch/pipelines'
  Dri::Commands::Fetch::Pipelines.new(options).execute
end

#runbooks(*args) ⇒ Object



85
86
87
88
89
90
# File 'lib/dri/commands/fetch.rb', line 85

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

  require_relative 'fetch/runbooks'
  Dri::Commands::Fetch::Runbooks.new(options).execute(folder: args.first)
end

#testcasesObject



39
40
41
42
43
44
45
46
# File 'lib/dri/commands/fetch.rb', line 39

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

#triagedObject



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

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