Class: EmbeddedJs::Commands::Init

Inherits:
Object
  • Object
show all
Defined in:
lib/embedded_js/commands/init.rb

Constant Summary collapse

TEMPLATES_DIR =
File.expand_path('../../templates', __dir__)
CONFIG_OUTPUT_PATH =
'./.embeddedjs'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(package_manager: 'npm') ⇒ Object



12
13
14
# File 'lib/embedded_js/commands/init.rb', line 12

def call(package_manager: 'npm')
  new.call(package_manager: package_manager)
end

Instance Method Details

#call(package_manager: 'npm') ⇒ Object



17
18
19
20
21
22
# File 'lib/embedded_js/commands/init.rb', line 17

def call(package_manager: 'npm')
  @package_manager = package_manager

  generate_config_file
  instructions
end