Sha256: d6e626ac5644d11ab4c0d11aca7625911343c7740dc974c98d1fe9743d5d40e9

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

require "thor"
module Jenkinson
  class CLI < Thor
    desc "set_jobs FROM_FOLDER", "create (or update) jobs from the ./jobs folder"
    def set_jobs(from = nil)
      Jenkinson::Hub.create_or_update_jobs(Dir["#{from}/*.xml"])
    end

    desc "get_jobs TARGET_FOLDER", "get jobs configurations"
    def get_jobs(target = nil)
      Jenkinson::Hub.get_jobs_config(target)
    end

    desc "install PLUGINS", "install jenkins plugins (comma separated)"
    def install(plugins = nil)
      Jenkinson::Hub.install_plugins(plugins)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jenkinson-0.0.2 lib/jenkinson/cli.rb
jenkinson-0.0.1 lib/jenkinson/cli.rb