require "thor"

require "figaro/cli/heroku_set"

module Figaro
  class CLI < Thor
    desc "heroku:set", "Send Figaro configuration to Heroku"

    method_option "app",
      aliases: ["a"],
      desc: "Specify a Heroku app"
    method_option "environment",
      aliases: ["e"],
      desc: "Specify an application environment",
      required: true
    method_option "path",
      aliases: ["p"],
      default: "config/application.yml",
      desc: "Specify a configuration file path"

    define_method "heroku:set" do
      HerokuSet.run(options)
    end
  end
end

require "thor"

require "figaro/cli/heroku_set"

module Figaro
  class CLI < Thor
    desc "heroku:set", "Send Figaro configuration to Heroku"

    method_option "app",
      aliases: ["-a"],
      desc: "Specify a Heroku app"
    method_option "environment",
      aliases: ["-e"],
      desc: "Specify an application environment",
      required: true
    method_option "path",
      aliases: ["-p"],
      default: "config/application.yml",
      desc: "Specify a configuration file path"

    define_method "heroku:set" do
      HerokuSet.run(options)
    end
  end
end

Fix Thor aliases to work for older versions of Thor
Fix Thor aliases to work for older versions of Thor

…as is required in older versions of Rails (< 3.2).
