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