Class: Gamefic::Sdk::Shell::Init
- Inherits:
-
Object
- Object
- Gamefic::Sdk::Shell::Init
- Defined in:
- lib/gamefic-sdk/shell/init.rb
Instance Method Summary collapse
-
#initialize(directory:, standard: true, quiet: false, scripts: [], webskin: 'standard', title: nil, author: nil) ⇒ Init
constructor
A new instance of Init.
- #run ⇒ Object
Constructor Details
#initialize(directory:, standard: true, quiet: false, scripts: [], webskin: 'standard', title: nil, author: nil) ⇒ Init
Returns a new instance of Init.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/gamefic-sdk/shell/init.rb', line 8 def initialize(directory:, standard: true, quiet: false, scripts: [], webskin: 'standard', title: nil, author: nil) @quiet = quiet @directory = directory @html = webskin @scripts = [] @scripts.push('standard') if standard @scripts += scripts if scripts @platforms = ['Gfic', 'Web'] @title = title @author = end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/gamefic-sdk/shell/init.rb', line 20 def run make_game_directories write_main_script write_test_script write_build_yaml write_config_yaml write_uuid_file copy_html_skin puts "Game directory '#{@directory}' initialized." unless @quiet end |