Sha256: d3362783cb27b9499e5e98df2eada807dc5395598cc553192124049f5dfbbeb7
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 KB
Contents
module EY class CLI < Thor class NoAppError < EY::Error def initialize(repo) @repo = repo end def message error = [%|There is no application configured for any of the following remotes:|] @repo.urls.each{|url| error << %|\t#{url}| } error << %|You can add this application at #{EY.config.endpoint}| error.join("\n") end end class EnvironmentError < EY::Error end class NoEnvironmentError < EnvironmentError def message "No environment named '#{env_name}'\nYou can create one at #{EY.config.endpoint}" end end class BranchMismatch < EY::Error def initialize(default_branch, branch) super(nil) @default_branch, @branch = default_branch, branch end def message %|Your deploy branch is set to "#{@default_branch}".\n| + %|If you want to deploy branch "#{@branch}", use --force.| end end class DeployArgumentError < EY::Error def message %|"deploy" was called incorrectly. Call as "deploy [ENVIRONMENT] [BRANCH]"\n| + %|You can set default environments and branches in ey.yml| end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
engineyard-0.2.11 | lib/engineyard/cli/error.rb |
engineyard-0.2.10 | lib/engineyard/cli/error.rb |
engineyard-0.2.9 | lib/engineyard/cli/error.rb |
engineyard-0.2.7 | lib/engineyard/cli/error.rb |