Module: EY::Serverside::About

Extended by:
About
Included in:
About
Defined in:
lib/engineyard-serverside/about.rb

Instance Method Summary collapse

Instance Method Details

#binaryObject


36
37
38
# File 'lib/engineyard-serverside/about.rb', line 36

def binary
  File.expand_path("../../../bin/#{gem_name}", __FILE__)
end

#gem_binaryObject


27
28
29
30
31
32
33
34
# File 'lib/engineyard-serverside/about.rb', line 27

def gem_binary
  gem_bin_path = File.join(Gem.default_bindir, 'gem')
  if File.exists?("/usr/local/ey_resin/bin/ruby")
    "/usr/local/ey_resin/bin/ruby -rubygems #{gem_bin_path}"
  else
    gem_bin_path
  end
end

#gem_fileObject


23
24
25
# File 'lib/engineyard-serverside/about.rb', line 23

def gem_file
  File.join(Gem.dir, 'cache', gem_filename)
end

#gem_filenameObject


19
20
21
# File 'lib/engineyard-serverside/about.rb', line 19

def gem_filename
  "#{gem_name}-#{version}.gem"
end

#gem_nameObject


7
8
9
# File 'lib/engineyard-serverside/about.rb', line 7

def gem_name
  "engineyard-serverside"
end

#hook_executorObject


40
41
42
# File 'lib/engineyard-serverside/about.rb', line 40

def hook_executor
  binary + "-execute-hook"
end

#name_with_versionObject


15
16
17
# File 'lib/engineyard-serverside/about.rb', line 15

def name_with_version
  "#{gem_name} #{version}"
end

#service_hook_executorObject


44
45
46
# File 'lib/engineyard-serverside/about.rb', line 44

def service_hook_executor
  binary + "-execute-service-hook"
end

#versionObject


11
12
13
# File 'lib/engineyard-serverside/about.rb', line 11

def version
  EY::Serverside::VERSION
end