Class: Snaptoken::Commands::Status

Inherits:
BaseCommand show all
Defined in:
lib/snaptoken/commands/status.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#config

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#git_to_litdiff!, inherited, #initialize, #litdiff_to_git!, #needs!, #parseopts!

Constructor Details

This class inherits a constructor from Snaptoken::Commands::BaseCommand

Class Method Details

.nameObject



2
3
4
# File 'lib/snaptoken/commands/status.rb', line 2

def self.name
  "status"
end

.summaryObject



6
7
8
9
# File 'lib/snaptoken/commands/status.rb', line 6

def self.summary
  "Show whether doc/ and repo/ were\n" +
  "last modified since the last sync."
end

.usageObject



11
12
13
# File 'lib/snaptoken/commands/status.rb', line 11

def self.usage
  ""
end

Instance Method Details

#runObject



18
19
20
# File 'lib/snaptoken/commands/status.rb', line 18

def run
  needs! :config
end

#setopts!(o) ⇒ Object



15
16
# File 'lib/snaptoken/commands/status.rb', line 15

def setopts!(o)
end