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.9.0 lib/bard/error.rb
bard-0.8.31 lib/bard/error.rb
bard-0.8.30 lib/bard/error.rb
bard-0.8.29 lib/bard/error.rb
bard-0.8.28 lib/bard/error.rb
bard-0.8.27 lib/bard/error.rb
bard-0.8.26 lib/bard/error.rb
bard-0.8.25 lib/bard/error.rb
bard-0.8.24 lib/bard/error.rb
bard-0.8.23 lib/bard/error.rb
bard-0.8.22 lib/bard/error.rb
bard-0.8.21 lib/bard/error.rb