Sha256: 1861873a841a0a34367a6c4e4662071ba545ed622d0afa53c70570d09d8370e9
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
require 'open-uri' class RubossConfigGenerator < RubiGen::Base include Ruboss4Ruby::Configuration def manifest record do |m| framework_release = Ruboss4Ruby::RUBOSS_FRAMEWORK_VERSION framework_distribution_url = "http://ruboss.com/releases/ruboss-#{framework_release}.swc" framework_destination_file = "lib/ruboss-#{framework_release}.swc" if !options[:skip_framework] && !File.exist?(framework_destination_file) puts "fetching #{framework_release} framework binary from: #{framework_distribution_url} ..." open(framework_destination_file, "wb").write(open(framework_distribution_url).read) puts "done. saved to #{framework_destination_file}" end end end protected def banner "Usage: #{$0} #{spec.name}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dima-ruboss4ruby-1.1.0 | generators/ruboss_config/ruboss_config_generator.rb |