Class: Gamefic::Sdk::Shell
- Inherits:
-
Thor
- Object
- Thor
- Gamefic::Sdk::Shell
- Defined in:
- lib/gamefic-sdk/shell.rb
Instance Method Summary collapse
Instance Method Details
#library(directory_name) ⇒ Object
24 25 26 27 |
# File 'lib/gamefic-sdk/shell.rb', line 24 def library(directory_name) Gamefic::Sdk::Scaffold.build 'library', directory_name puts "Gamefic library initialized at #{File.realpath(directory_name)}" end |
#project(directory_name) ⇒ Object
18 19 20 21 |
# File 'lib/gamefic-sdk/shell.rb', line 18 def project(directory_name) Gamefic::Sdk::Scaffold.build 'project', directory_name, ** puts "Gamefic project initialized at #{File.realpath(directory_name)}" end |
#version ⇒ Object
10 11 12 13 |
# File 'lib/gamefic-sdk/shell.rb', line 10 def version puts "gamefic-sdk #{Gamefic::Sdk::VERSION}" puts "gamefic #{Gamefic::VERSION}" end |