Sha256: 8c4100e95b367bbe76bb8f25f2fbd842f8d6681f99d23c142b48ef83bd51634e

Contents?: true

Size: 603 Bytes

Versions: 28

Compression:

Stored size: 603 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

28 entries across 28 versions & 1 rubygems

Version Path
makit-0.0.56 lib/makit/commands.rb
makit-0.0.55 lib/makit/commands.rb
makit-0.0.54 lib/makit/commands.rb
makit-0.0.48 lib/makit/commands.rb
makit-0.0.40 lib/makit/commands.rb
makit-0.0.39 lib/makit/commands.rb
makit-0.0.38 lib/makit/commands.rb
makit-0.0.37 lib/makit/commands.rb
makit-0.0.36 lib/makit/commands.rb
makit-0.0.26 lib/makit/commands.rb
makit-0.0.25 lib/makit/commands.rb
makit-0.0.24 lib/makit/commands.rb
makit-0.0.23 lib/makit/commands.rb
makit-0.0.22 lib/makit/commands.rb
makit-0.0.21 lib/makit/commands.rb
makit-0.0.20 lib/makit/commands.rb
makit-0.0.19 lib/makit/commands.rb
makit-0.0.16 lib/makit/commands.rb
makit-0.0.13 lib/makit/commands.rb
makit-0.0.12 lib/makit/commands.rb