Sha256: 0b12302ef96be69237220fe7a36adcf3ad7d695d8aa6b6ca90d5d74b542fd1d4

Contents?: true

Size: 1.38 KB

Versions: 21

Compression:

Stored size: 1.38 KB

Contents

class Bard < Thor
  {
    "SubmoduleDirtyError"       => "You have uncommitted changes to a submodule!\n  Please see Micah about this.",
    "SubmoduleUnpushedError"    => "You have unpushed changes to a submodule!\n  Please see Micah about this.",
    "NonFastForwardError"       => "Someone has pushed some changes since you last pulled.\n  Kindly run bard pull, ensure that your your changes still work, and try again",
    "MasterNonFastForwardError" => "The master branch has advanced since last deploy, probably due to a bugfix.\n  Rebase your integration branch on top of it, and check for breakage.",
    "NotInProjectRootError"     => "You are not in the project's root directory!",
    "NotOnIntegrationError"     => "You are not on the integration branch!\n  Type `git checkout integration` to switch to it. If you have made changes to your current branch, please see Micah for assistance.",
    "WorkingTreeDirtyError"     => "You have uncommitted changes!\n  Please run git commit before attempting to push or pull.",
    "StagingDetachedHeadError"  => "The staging server is on a detached HEAD!\n  Please see Micah for assistance.",
    "TestsFailedError"          => "Automated tests failed!\n  See http://integrity.botandrose.com/ for more info."
  }.each do |error, message|
    eval <<-RUBY
    class #{error} < Bard::Error
      def message
        %q{#{message}}
      end
    end
  RUBY
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bard-0.8.20 lib/bard/error.rb
bard-0.8.19 lib/bard/error.rb
bard-0.8.18 lib/bard/error.rb
bard-0.8.17 lib/bard/error.rb
bard-0.8.16 lib/bard/error.rb
bard-0.8.15 lib/bard/error.rb
bard-0.8.14 lib/bard/error.rb
bard-0.8.13 lib/bard/error.rb
bard-0.8.12 lib/bard/error.rb
bard-0.8.11 lib/bard/error.rb
bard-0.8.10 lib/bard/error.rb
bard-0.8.9 lib/bard/error.rb
bard-0.8.8 lib/bard/error.rb
bard-0.8.7 lib/bard/error.rb
bard-0.8.6 lib/bard/error.rb
bard-0.8.5 lib/bard/error.rb
bard-0.8.4 lib/bard/error.rb
bard-0.8.3 lib/bard/error.rb
bard-0.8.2 lib/bard/error.rb
bard-0.8.1 lib/bard/error.rb