Sha256: d1ece31ab44a796ce14d62cbbf412f8635e9db70c215a9c24f6216fbbd2a9ee1

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 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(from)
    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.4 lib/jenkinson/cli.rb
jenkinson-0.0.3 lib/jenkinson/cli.rb