Sha256: 2d464906fe4e423c29d47e862166304dbce11c848fc6daeda4ec80279e89918a

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

class Pushit < Aid::Script
  def self.description
    'Pulls latest code, runs test, pushes your code'
  end

  def self.help
    <<~HELP
      $ aid pushit

      Pulls the latest code, restarts, runs the tests, and pushes your new
      code up.
    HELP
  end

  def run
    Update.run
    Test.run

    step 'Pushing your branch' do
      system! 'git push --force-with-lease'
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aid-0.2.2 examples/pushit.rb
abtion-aid-0.3.2 examples/pushit.rb
abtion-aid-0.3.1 examples/pushit.rb
abtion-aid-0.2.0 examples/pushit.rb