Sha256: 2f54d69a839bc9cb8ee30c8884fdaabc68bd413821e63d7057ccb92e8055a899

Contents?: true

Size: 580 Bytes

Versions: 22

Compression:

Stored size: 580 Bytes

Contents

module Dandelion
  module Command
    class Status < Command::Base
      command :status

      def self.parser(options)
        OptionParser.new do |opts|
          opts.banner = 'Usage: dandelion status'
        end
      end

      def execute!
        log.info("Connecting to #{adapter.to_s}")

        local_commit = workspace.local_commit
        remote_commit = workspace.remote_commit

        log.info("Remote revision:      #{remote_commit ? remote_commit.oid : '---'}")
        log.info("Local HEAD revision:  #{workspace.local_commit.oid}")
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dandelion-0.6.0 lib/dandelion/command/status.rb
dandelion-0.5.4 lib/dandelion/command/status.rb
dandelion-0.5.3 lib/dandelion/command/status.rb
dandelion-0.5.2 lib/dandelion/command/status.rb
dandelion-0.5.1 lib/dandelion/command/status.rb
dandelion-0.5.0 lib/dandelion/command/status.rb
dandelion-0.4.17 lib/dandelion/command/status.rb
dandelion-0.4.16 lib/dandelion/command/status.rb
dandelion-0.4.15 lib/dandelion/command/status.rb
dandelion-0.4.14 lib/dandelion/command/status.rb
dandelion-0.4.10 lib/dandelion/command/status.rb
dandelion-0.4.9 lib/dandelion/command/status.rb
dandelion-0.4.8 lib/dandelion/command/status.rb
dandelion-0.4.7 lib/dandelion/command/status.rb
dandelion-0.4.6 lib/dandelion/command/status.rb
dandelion-0.4.5 lib/dandelion/command/status.rb
dandelion-0.4.4 lib/dandelion/command/status.rb
dandelion-0.4.3 lib/dandelion/command/status.rb
dandelion-0.4.2 lib/dandelion/command/status.rb
dandelion-0.4.1 lib/dandelion/command/status.rb