Class: AnyCableRailsGenerators::DownloadGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AnyCableRailsGenerators::DownloadGenerator
- Includes:
- WithOSHelpers
- Defined in:
- lib/generators/anycable/download/download_generator.rb
Overview
Downloads anycable-go binary
Constant Summary collapse
- VERSION =
"latest"
Constants included from WithOSHelpers
WithOSHelpers::CPU_NAMES, WithOSHelpers::DEFAULT_BIN_PATH, WithOSHelpers::OS_NAMES
Instance Method Summary collapse
Methods included from WithOSHelpers
#cpu_name, #current_cpu, included, #os_name, #supported_current_cpu, #supported_current_os
Instance Method Details
#download_bin ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/generators/anycable/download/download_generator.rb', line 21 def download_bin out = [:bin_path] || DEFAULT_BIN_PATH version = [:version] || VERSION download_exe( release_url(version), to: out, file_name: "anycable-go" ) true end |