Sha256: bdeb050541d18bfaf34575c748417d6b1bcc5c57600f96c27eb5a1febefbaee2

Contents?: true

Size: 996 Bytes

Versions: 2

Compression:

Stored size: 996 Bytes

Contents

require_relative "ro_helper"
module RoHelpers
  module RailsBuilderHelper
    class << self
      def included(base)
        base.extend(ClsMeths)
      end
    end

    module ClsMeths

      include ::RoHelper

      def rails_cmds
        cmd 'z', 'zeus'
        cmd 'zr', 'z rails'
        cmd 'g', 'z g'
        cmd 'd', 'z d'
        cmd 'zs', 'z s'

        # generate
        cmd 'a', 'z g assets'
        cmd 'c', 'zr controller'
        cmd 'm', 'zr migration'
        cmd 'mo', 'zr model'
        cmd 's', 'zr scaffold'


        # destroy
        cmd 'da', 'd assets', 'ro_client rails get_assets'
        cmd 'dco', 'd controller', 'ro_client rails get_controllers'
        cmd 'dmo', 'd model', 'ro_client rails get_models'
        cmd 'dm', 'd migration', 'ro_client rails get_migrations'
        cmd 'ds', 'd scaffold', 'ro_client rails get_scaffolds'

        # misc
        cmd 'mi', 'z rake db:migrate'

        cmd 'bx', "bundle exec"
        cmds
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ro_commands-0.0.3 lib/rails_builder_helper.rb
ro_commands-0.0.2 lib/rails_builder_helper.rb