Sha256: 1df3792d96d15d32d03b73b52adb8dd868075269ae50a3e6bb29e0356ef548b9

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents

module Eskort
  module Bundler
    class Command
      def bundle_update(gem_name)
        Kernel.system("bundle update #{gem_name}")
      end

      def git_config_global(email:, name:)
        Kernel.system("git config --global user.email #{email}")
        Kernel.system("git config --global user.name #{name}")
      end

      def git_checkout(branch_name)
        Kernel.system("git checkout -b #{branch_name} origin/master")
      end

      def git_commit(gem_name, gem_version)
        Kernel.system("git commit Gemfile.lock -m \'Auto update #{gem_name} to version #{gem_version}\'")
      end

      def git_push(branch_name)
        Kernel.system("git push origin #{branch_name}")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eskort-0.0.4 lib/eskort/bundler/command.rb
eskort-0.0.3 lib/eskort/bundler/command.rb
eskort-0.0.2 lib/eskort/bundler/command.rb
eskort-0.0.1 lib/eskort/bundler/command.rb