Sha256: 370f36cd1424318b7e471bc24c5b9c7cf4dbf590d464ae77d01b39ea01e5e8e9

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

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

  def self.help
    <<~EOF
    aid pushit

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

  def run
    Update.run
    Test.run

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aid-0.1.3 examples/pushit.rb