Sha256: 727b1c551f3910449d97f1c755762d0849d95a72d1e2dc3a22cc4055e9f4a201

Contents?: true

Size: 739 Bytes

Versions: 6

Compression:

Stored size: 739 Bytes

Contents

require 'open-uri'

class RxConfigGenerator < RubiGen::Base
  include RestfulX::Configuration

  def manifest
    record do |m|        
      framework_release = RestfulX::FRAMEWORK_VERSION
      framework_distribution_url = "http://restfulx.github.com/releases/restfulx-#{framework_release}.swc"
      framework_destination_file = "lib/restfulx-#{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
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dima-restfulx-1.2.0 generators/rx_config/rx_config_generator.rb
dima-restfulx-1.2.1 generators/rx_config/rx_config_generator.rb
dima-restfulx-1.2.2 rxgen_generators/rx_config/rx_config_generator.rb
restfulx-1.2.1 generators/rx_config/rx_config_generator.rb
restfulx-1.2.2 rxgen_generators/rx_config/rx_config_generator.rb
restfulx-1.2.0 generators/rx_config/rx_config_generator.rb