Sha256: 52bec0ca7a1e1e6264d3b78decb19a845b79b04a173e7964d4ca1f3bfdb3507a

Contents?: true

Size: 582 Bytes

Versions: 25

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

require "English"
require "open3"
require "socket"
require "etc"
require "logger"

# This module provides classes for the Makit gem.
module Makit
  # This class provide methods running commands.
  #
  class Commands < Array

    # Generate the commands based on the current directory.
    def auto_generate
      self << Makit::V1::CommandRequest.new(name: "bundle", arguments: ["install"]) if File.exist?("Gemfile")
      self << Makit::V1::CommandRequest.new(name: "bundle", arguments: ["exec", "rake"]) if File.exist?("Rakefile")
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
makit-0.0.57 lib/makit/commands.rb
makit-0.0.53 lib/makit/commands.rb
makit-0.0.52 lib/makit/commands.rb
makit-0.0.51 lib/makit/commands.rb
makit-0.0.50 lib/makit/commands.rb
makit-0.0.49 lib/makit/commands.rb
makit-0.0.47 lib/makit/commands.rb
makit-0.0.46 lib/makit/commands.rb
makit-0.0.45 lib/makit/commands.rb
makit-0.0.44 lib/makit/commands.rb
makit-0.0.42 lib/makit/commands.rb
makit-0.0.41 lib/makit/commands.rb
makit-0.0.35 lib/makit/commands.rb
makit-0.0.34 lib/makit/commands.rb
makit-0.0.33 lib/makit/commands.rb
makit-0.0.32 lib/makit/commands.rb
makit-0.0.31 lib/makit/commands.rb
makit-0.0.30 lib/makit/commands.rb
makit-0.0.29 lib/makit/commands.rb
makit-0.0.28 lib/makit/commands.rb