Class: Builtins::Version
Constant Summary
collapse
- GEMSPEC_FILE =
"#{__dir__}/../../ops_team.gemspec"
Instance Attribute Summary
Attributes inherited from Builtin
#args, #config
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Builtin
class_for, #initialize
Constructor Details
This class inherits a constructor from Builtin
Class Method Details
.description ⇒ Object
12
13
14
|
# File 'lib/builtins/version.rb', line 12
def description
"prints the version of ops that is running"
end
|
Instance Method Details
#run ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/builtins/version.rb', line 17
def run
unless gemspec
Output.error("Unable to load gemspec at '#{GEMSPEC_FILE}")
return false
end
Output.out(gemspec.version)
end
|