Sha256: c6ce51185753ffab7e42fe5f0d7e52ec44f3a56fe58f4e526b715f10cc47acd2

Contents?: true

Size: 263 Bytes

Versions: 10

Compression:

Stored size: 263 Bytes

Contents

module Orats
  # execute various shell commands
  module Shell
    def run_from(path, command)
      run "cd #{path} && #{command} && cd -"
    end

    def commit(message)
      run_from @target_path, "git add -A && git commit -m '#{message}'"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
orats-0.9.7 lib/orats/shell.rb
orats-0.9.6 lib/orats/shell.rb
orats-0.9.5 lib/orats/shell.rb
orats-0.9.4 lib/orats/shell.rb
orats-0.9.3 lib/orats/shell.rb
orats-0.9.2 lib/orats/shell.rb
orats-0.9.1 lib/orats/shell.rb
orats-0.9.0 lib/orats/shell.rb
orats-0.8.1 lib/orats/shell.rb
orats-0.8.0 lib/orats/shell.rb