Sha256: 6cf2ccf1d75c626f2fe4ed02f54fa87f7815ff57ac0dc00f803e382b25f57e7e

Contents?: true

Size: 594 Bytes

Versions: 9

Compression:

Stored size: 594 Bytes

Contents

require 'result'

module EY
  module Serverside
    module Slug

      module Generator
        extend Result::DSL

        def self.generate(data = {})
          data[:shell].logged_system(ogun(data)).success? ?
            Success(data.merge(:generated => true)) :
            Failure(data.merge(:error => "Ogun build failed"))
        end

        def self.ogun(data = {})
          [
            "/engineyard/bin/ogun",
            "build",
            data[:app_name],
            "--release",
            data[:release_name]
          ].join(' ')
        end
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
engineyard-serverside-3.0.4 lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-3.0.3 lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.8.0 lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.8.0.pre4 lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.8.0.pre3 lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.8.0.pre2 lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.8.0.pre lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.7.0.pre lib/engineyard-serverside/slug/generator.rb
engineyard-serverside-2.6.19 lib/engineyard-serverside/slug/generator.rb