Sha256: 23d3acf5693b7bc191bfdae9d0528d80bbf4e59ba8426c01c6c654b3e3ea2c3d

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

module Ec2onrails
  module Utils
    def self.run(command)
      result = system command
      raise("error: #{$?}") unless result
    end
  
    def self.rails_env
      `/usr/local/ec2onrails/bin/rails_env`.strip
    end
    
    def self.hostname
      `hostname -s`.strip
    end
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
Agiley-ec2onrails-0.9.10 server/files/usr/local/ec2onrails/lib/utils.rb
hennk-ec2onrails-0.9.9.1 server/files/usr/local/ec2onrails/lib/utils.rb
hennk-hennk-ec2onrails-0.9.9.2 server/files/usr/local/ec2onrails/lib/utils.rb
hennk-hennk-ec2onrails-0.9.9.3 server/files/usr/local/ec2onrails/lib/utils.rb