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.27 lib/makit/commands.rb
makit-0.0.5 lib/makit/commands.rb
makit-0.0.4 lib/makit/commands.rb
makit-0.0.3 lib/makit/commands.rb
makit-0.0.2 lib/makit/commands.rb