Sha256: 721d5f6d733ce2dbe78ec284d55dae80ae5a391c93b571bfb9e186d1ca8954bc

Contents?: true

Size: 995 Bytes

Versions: 9

Compression:

Stored size: 995 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require "rubygems"
require "gamma"
require "thor"

class GammaCLI < Thor

  desc "apply", "Apply"
  option :settings, aliases: "-s", desc: "Database Settings yaml", required: true
  option :data, aliases: "-d", desc: "Table Sync Settings yaml", required: true
  option :hook_dir, aliases: "-h", desc: "Hook script directory"
  option :sync_history, desc: "Hook script directory"
  def apply
    Gamma::Command::Apply.new(options).execute
  end

  desc "dryrun", "Dryrun"
  option :settings, aliases: "-s", desc: "Database Settings yaml", required: true
  option :data, aliases: "-d", desc: "Table Sync Settings yaml", required: true
  option :hook_dir, aliases: "-h", desc: "Hook script directory"
  option :sync_history, desc: "Hook script directory"
  def dryrun
    Gamma::Command::Dryrun.new(options).execute
  end

  desc "dryrun", "Dryrun"
  def version
    puts Gamma::VERSION
  end
end

GammaCLI.start(ARGV)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gamma-0.2.0 exe/gamma
gamma-0.1.9 exe/gamma
gamma-0.1.8 exe/gamma
gamma-0.1.7 exe/gamma
gamma-0.1.6 exe/gamma
gamma-0.1.5 exe/gamma
gamma-0.1.4 exe/gamma
gamma-0.1.3 exe/gamma
gamma-0.1.2 exe/gamma