lib/shoes/package/configuration.rb in shoes-package-4.0.0.pre8 vs lib/shoes/package/configuration.rb in shoes-package-4.0.0.pre9

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true require 'bundler' require 'pathname' require 'yaml' require 'furoshiki/configuration' require 'furoshiki/validator' @@ -15,12 +16,16 @@ # config = Shoes::Package::Configuration.load(config_file) # module Configuration extend ::Furoshiki::Util - JAR_APP_TEMPLATE_URL = 'https://s3.amazonaws.com/net.wasnotrice.shoes/wrappers/shoes-app-template-0.0.2.zip'.freeze + def backend + "swt" + end + JAR_APP_TEMPLATE_URL = 'https://s3.amazonaws.com/net.wasnotrice.shoes/wrappers/shoes-app-template-0.0.2.zip' + # Convenience method for loading config from a file. Note that you # can pass four kinds of paths to the loader. Given the following # file structure: # # |-- a @@ -72,9 +77,10 @@ end config = YAML.safe_load(file.read, [Symbol]) config[:working_dir] = dir config[:gems] = merge_gems(base_config, config) + config[:gems] << "shoes-swt" create(config) end # @param [Hash] config user options def self.create(config = {})