Class: Jenkinson::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/jenkinson/cli.rb

Instance Method Summary collapse

Instance Method Details

#get_jobs(target = nil) ⇒ Object



10
11
12
# File 'lib/jenkinson/cli.rb', line 10

def get_jobs(target = nil)
  Jenkinson::Hub.get_jobs_config(target)
end

#install(plugins = nil) ⇒ Object



15
16
17
# File 'lib/jenkinson/cli.rb', line 15

def install(plugins = nil)
  Jenkinson::Hub.install_plugins(plugins)
end

#set_jobs(from = nil) ⇒ Object



5
6
7
# File 'lib/jenkinson/cli.rb', line 5

def set_jobs(from = nil)
  Jenkinson::Hub.create_or_update_jobs(from)
end