Class: GitPusshuTen::Commands::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/gitpusshuten/commands/version.rb

Instance Attribute Summary

Attributes inherited from Base

#cli, #command, #configuration, #environment, #hooks, #perform_hooks

Instance Method Summary collapse

Methods inherited from Base

#c, #command_object, description, #e, #error, example, #g, #git, #help, #local, long_description, #message, #perform_hooks!, #post_perform!, #pre_perform!, #prompt_for_root_password!, #prompt_for_user_password!, #r, #requires_user_existence!, #silent, #standard, usage, #validate!, #warning, #y, #yes?

Constructor Details

#initialize(*objects) ⇒ Version

Initializes the Version command



9
10
11
# File 'lib/gitpusshuten/commands/version.rb', line 9

def initialize(*objects)
  super
end

Instance Method Details

#perform!Object

Performs the Version command



15
16
17
# File 'lib/gitpusshuten/commands/version.rb', line 15

def perform!
  standard "Git Pusshu Ten (プッシュ天) version #{GitPusshuTen::VERSION}"
end