Sha256: 45663fd8e30135ae1ba1a81271b9cb9cf8f1f5ad415bce81c3d322aee30ccfbf
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
module Autowow module Commands module Gem def release be + ["rake", "release"] end def clean ["gem", "clean"] end def bundle_install ["bundle", "install"] end def rubocop_parallel be + ["rubocop", "--parallel"] end def bump(version = nil) command = ["gem", "bump", "--no-commit", "--no-color"] 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 def rake be + ["rake"] end def rake_db_migrate ["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:migrate"] end def rake_db_schema ["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:schema:load"] end def rake_db_structure ["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:structure:load"] end include ReflectionUtils::CreateModuleFunctions end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autowow-0.15.0 | lib/autowow/commands/gem.rb |