Sha256: cfdf775353e54be463df24dfba6b6ed839fd6516e4fc90292dde6f4d76430aa0

Contents?: true

Size: 1.38 KB

Versions: 32

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!",
    "OnMasterBranchError"       => "You are on the master branch!\n  This is almost always a bad idea. Please work on a topic branch. If you have made changes on this 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

32 entries across 32 versions & 1 rubygems

Version Path
bard-0.12.0 lib/bard/error.rb
bard-0.11.3 lib/bard/error.rb
bard-0.11.2 lib/bard/error.rb
bard-0.11.1 lib/bard/error.rb
bard-0.11.0 lib/bard/error.rb
bard-0.10.0 lib/bard/error.rb
bard-0.9.14 lib/bard/error.rb
bard-0.9.13 lib/bard/error.rb
bard-0.9.12 lib/bard/error.rb
bard-0.9.11 lib/bard/error.rb
bard-0.9.10 lib/bard/error.rb
bard-0.9.9 lib/bard/error.rb
bard-0.9.8 lib/bard/error.rb
bard-0.9.7 lib/bard/error.rb
bard-0.9.6 lib/bard/error.rb
bard-0.9.5 lib/bard/error.rb
bard-0.9.4 lib/bard/error.rb
bard-0.9.3 lib/bard/error.rb
bard-0.9.2 lib/bard/error.rb
bard-0.9.1 lib/bard/error.rb