Module: InstallGemLocal::BuildGem

Included in:
Action
Defined in:
lib/install_gem_local/action/build_gem.rb

Instance Method Summary collapse

Instance Method Details

#build_gemObject



5
6
7
8
9
10
11
# File 'lib/install_gem_local/action/build_gem.rb', line 5

def build_gem
  puts ''
  puts 'Build Gem'.green
  file = tty_command.run('find -type f -name "*.gemspec"')
  file_name = file.out.strip
  file_name.empty? ? ap('Gemspec not exist') : tty_command.run("gem build #{file_name}")
end