Sha256: 31ab0a3f8a3734e92bfca5acf8df644677c90f449f1db944fdc60e32ab1341fd

Contents?: true

Size: 1.03 KB

Versions: 26

Compression:

Stored size: 1.03 KB

Contents

module Takelage

  # takelage git check
  class GitCheck < SubCommandBase

    include LoggingModule
    include SystemModule
    include ConfigModule
    include GitCheckModule

    #
    # git check clean
    #
    desc 'clean', 'Check if the git workspace is clean'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if the git workspace is clean
    LONGDESC
    # Check if the git workspace is clean.
    def clean
      exit git_check_clean
    end

    #
    # git check master
    #
    desc 'master', 'Check if we are on the git master branch'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if we are on the git master branch
    LONGDESC
    # Check if we are on the git master branch.
    def master
      exit git_check_master
    end

    #
    # git check workspace
    #
    desc 'workspace', 'Check if a git workspace exists'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if a git workspace exists
    LONGDESC
    # Check if a git workspace exists.
    def workspace
      exit git_check_workspace
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
takelage-0.13.2 lib/takelage/git/check/cli.rb
takelage-0.13.1 lib/takelage/git/check/cli.rb
takelage-0.13.0 lib/takelage/git/check/cli.rb
takelage-0.12.2 lib/takelage/git/check/cli.rb
takelage-0.12.1 lib/takelage/git/check/cli.rb
takelage-0.12.0 lib/takelage/git/check/cli.rb
takelage-0.11.1 lib/takelage/git/check/cli.rb
takelage-0.11.0 lib/takelage/git/check/cli.rb
takelage-0.10.0 lib/takelage/git/check/cli.rb
takelage-0.9.2 lib/takelage/git/check/cli.rb
takelage-0.9.1 lib/takelage/git/check/cli.rb
takelage-0.9.0 lib/takelage/git/check/cli.rb
takelage-0.8.1 lib/takelage/git/check/cli.rb
takelage-0.8.0 lib/takelage/git/check/cli.rb
takelage-0.7.2 lib/takelage/git/check/cli.rb
takelage-0.7.1 lib/takelage/git/check/cli.rb
takelage-0.7.0 lib/takelage/git/check/cli.rb
takelage-0.6.0 lib/takelage/git/check/cli.rb
takelage-0.5.1 lib/takelage/git/check/cli.rb
takelage-0.5.0 lib/takelage/git/check/cli.rb