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


31
32
33
# File 'lib/engineyard-serverside/about.rb', line 31

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

#gem_binaryObject


27
28
29
# File 'lib/engineyard-serverside/about.rb', line 27

def gem_binary
  File.join(Gem.default_bindir, 'gem')
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


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

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

#versionObject


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

def version
  EY::Serverside::VERSION
end