Sha256: ea938a25030f1aebd83069468d13ce534c14b846482bf365f26192256a806ca5

Contents?: true

Size: 418 Bytes

Versions: 5

Compression:

Stored size: 418 Bytes

Contents

module VraptorScaffold
  module Runner

    class Plugin

      def run(args)
        if VraptorScaffold::Runner::Help.help?(args.first) || args.size < 2
          PluginGenerator.start(["-h"])
        elsif File.exist?("src")
          PluginGenerator.new(args.shift, args).invoke_all
        else
          puts "To run vraptor plugin please go to the project root folder."
        end
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vraptor-scaffold-1.3.0 lib/vraptor-scaffold/runner/plugin.rb
vraptor-scaffold-1.3.0.rc lib/vraptor-scaffold/runner/plugin.rb
vraptor-scaffold-1.2.3 lib/vraptor-scaffold/runner/plugin.rb
vraptor-scaffold-1.2.1 lib/vraptor-scaffold/runner/plugin.rb
vraptor-scaffold-1.2.0 lib/vraptor-scaffold/runner/plugin.rb