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