module Hoe::MannsMethods

Module Hoe TODO: Try to fix this in future rubocop:disable Metrics/ClassAndModuleChildren

Public Class Methods

bundle_install() click to toggle source

Installs a bundle

# File lib/hoe/manns-methods.rb, line 24
def self.bundle_install
  puts 'Installing Bundle'.color(:yellow)
  system('bundle install')
  puts 'Installed Bundle'.color(:green)
end
clean_pkg_method() click to toggle source

Cleanup the pkg

# File lib/hoe/manns-methods.rb, line 65
def self.clean_pkg_method
  puts 'Cleaning pkg'.color(:yellow)
  FileUtils.rm_rf('pkg') if Dir.exist?('pkg')
  FileUtils.rm_rf('recipes/pkg') if Dir.exist?('recipes/pkg')
  puts 'Cleanup succeed'.color(:green)
end
copy_master() click to toggle source

Copying stuff to master

# File lib/hoe/manns-methods.rb, line 45
def self.copy_master
  copy_master_co_master
  puts 'Set a Git Tag'.color(:yellow)
  system('rake git:tag')
  puts 'Checking out develop again'.color(:yellow)
  system('git checkout develop')
  puts 'Done'.color(:green)
end
copy_master_co_master() click to toggle source

Check out master

# File lib/hoe/manns-methods.rb, line 55
def self.copy_master_co_master
  puts 'Checking out master'.color(:yellow)
  system('git checkout master')
  puts 'Merging master with develop'.color(:yellow)
  system('git merge develop')
  puts 'Pushing master to origin'.color(:yellow)
  system('git push')
end
remove_pre_gemspec_method() click to toggle source

Remove prerelease gemspec

# File lib/hoe/manns-methods.rb, line 38
def self.remove_pre_gemspec_method
  puts 'Removing pre version of gemspec'.color(:yellow)
  File.delete(*Dir.glob('*.gemspec'))
  puts 'Removed'.color(:green)
end
update_gemfile_lock_method() click to toggle source

Update Gemfile.lock

# File lib/hoe/manns-methods.rb, line 31
def self.update_gemfile_lock_method
  puts 'Updating Gemfile.lock'.color(:yellow)
  system('bundle update')
  puts 'Updated Gemfile.lock'.color(:green)
end