class Shaf::Command::Version
Public Instance Methods
call()
click to toggle source
# File lib/shaf/command/version.rb, line 8 def call print_shaf_version print_project_version end
print_project_version()
click to toggle source
# File lib/shaf/command/version.rb, line 17 def print_project_version path = project_root return if path.nil? project = path.split('/').last puts "Project '#{project}' created with Shaf version: #{read_shaf_version}" end
print_shaf_version()
click to toggle source
# File lib/shaf/command/version.rb, line 13 def print_shaf_version puts "Installed Shaf version: #{Shaf::VERSION}" end