Sha256: b6b4a5d0b4829abcc3bf4dc2d960bd137a923753e7763519f03412070e750818

Contents?: true

Size: 740 Bytes

Versions: 4

Compression:

Stored size: 740 Bytes

Contents

module Autowow
  module Commands
    module Gem
      def release
        be + ["rake", "release"]
      end

      def clean
        ["gem", "clean"]
      end

      def rubocop_parallel
        be + ["rubocop", "--parallel"]
      end

      def bump(version = nil)
        command = ["gem", "bump", "--no-commit"]
        return command unless version
        command + ["--version", version]
      end

      def rubocop_autocorrect(files)
        cmd = be + ["rubocop", "--auto-correct"]
        if files.kind_of?(Array)
          cmd + files
        else
          cmd + files.split(" ")
        end
      end

      def be
        ["bundle", "exec"]
      end

      include ReflectionUtils::CreateModuleFunctions
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
autowow-0.11.2 lib/autowow/commands/gem.rb
autowow-0.11.1 lib/autowow/commands/gem.rb
autowow-0.11.0 lib/autowow/commands/gem.rb
autowow-0.10.1 lib/autowow/commands/gem.rb