Sha256: 8ac1a1d387940ab005e5840b0bfefcce1d73e63d32d8fb4d3697bbe38def7a75

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

def stub_yrb_configuration
  @content_variables = {
    "version" => 1,
    "sprint_name" => "Firefly" 
  }
  
  @servers = {
    "staging" => {
      "server" => "staging",
      "application_id" => "12345",
      "assets_id" => "abcdefg_1"
    },
  
    "production" => {
      "server" => "www",
      "application_id" => "678910",
      "assets_id" => "hijklmno_1"
    }
  }
  @servers.stub!(:servers).and_return(@servers)
  
  @compress = {"obfuscate"=>true, "js_assets"=>true, "css"=>true, "embedded_js"=>true}
  @validate = {"html"=>{"doctype"=>"HTML 4.0 Transitional", "build"=>true, "deploy"=>true}, "js_assets"=>{"build"=>false, "deploy"=>false}, "json_assets"=>{"build"=>false, "deploy"=>false}, "embedded_js"=>{"build"=>true, "deploy"=>true}}

  @base_path = "./base_path/"

  YMDP::Base.configure do |config|
    config.username = "malreynolds"
    config.password = "firefly2591"
    config.default_server = "staging"
    config.growl = true
    config.verbose = false
    config.compress = @compress
    config.validate = @validate

    config.add_path(:base_path, @base_path)
    config.servers = @servers
    
    config.content_variables = @content_variables
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ymdp-0.1.10 spec/default_settings.rb
ymdp-0.1.9 spec/default_settings.rb
ymdp-0.1.8.1 spec/default_settings.rb
ymdp-0.1.8 spec/default_settings.rb
ymdp-0.1.7 spec/default_settings.rb
ymdp-0.1.6 spec/default_settings.rb