Sha256: 578235893771ff94a7c92a492d3cfa2ce57cce42efbaf3236d27e27064fa8971

Contents?: true

Size: 1.45 KB

Versions: 7

Compression:

Stored size: 1.45 KB

Contents

# Define Thor tasks in the top level Default namespace.
class Default < Thor
  desc 'info', 'prints config info for this gem'
  def info
    puts <<-MSG
    gem_name: #{gem_name}
 github_name: #{github_name}
github_owner: #{github_owner}
      branch: #{branch}
version_file: #{version_file}
    MSG
  end

  desc 'bumpx', 'Bump the x version number, set y & z to zero, update the date.'
  def bumpx
    _bump :x
  end

  desc 'bumpy', 'Bump the y version number, set z to zero, update the date.'
  def bumpy
    _bump :y
  end

  desc 'bump', 'Bump the z version number and update the date.'
  def bump
    _bump :z
  end

  desc 'publish', 'Build and release a new gem to rubygems.org'
  def publish
    _publish
  end

  desc 'release', 'Build and release a new gem to rubygems.org (same as publish)'
  def release
    _publish
  end

  desc 'build', 'Build a new gem'
  def build
    _build_gem
  end

  # uninstall is a reserved task name
  # https://github.com/erikhuda/thor/issues/428
  desc 'gem_uninstall', 'Uninstall gem'
  def gem_uninstall
    _uninstall
  end

  # install is a reserved task name
  # https://github.com/erikhuda/thor/issues/428
  desc 'gem_install', 'Install gem'
  def gem_install
    _install
  end

  desc 'notes', 'Update release notes'
  def notes
    update_release_notes
  end

  desc 'byte', 'Remove non-ascii bytes from all *.rb files in the current dir'
  def byte
    remove_non_ascii_from_cwd
  end

  def self.exit_on_failure?
    true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appium_thor-2.1.0 lib/appium_thor/commands/commands.rb
appium_thor-2.0.6 lib/appium_thor/commands/commands.rb
appium_thor-2.0.5 lib/appium_thor/commands/commands.rb
appium_thor-2.0.4 lib/appium_thor/commands/commands.rb
appium_thor-2.0.2 lib/appium_thor/commands/commands.rb
appium_thor-2.0.1 lib/appium_thor/commands/commands.rb
appium_thor-2.0.0 lib/appium_thor/commands/commands.rb