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/quarantines.rb,
lib/dri/commands/fetch/featureflags.rb

Defined Under Namespace

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

Instance Method Summary collapse

Instance Method Details

#dequarantinesObject



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

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

  require_relative 'fetch/quarantines'
  Dri::Commands::Fetch::Quarantines.new(options, search: '[DEQUARANTINE]').execute
end

#failuresObject



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

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



98
99
100
101
102
103
# File 'lib/dri/commands/fetch.rb', line 98

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

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

#quarantinesObject



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

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

#runbooks(*args) ⇒ Object



109
110
111
112
113
114
# File 'lib/dri/commands/fetch.rb', line 109

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