Sha256: cadd37cb7ac78cba4ead27bf2f2e1f46344b97e83b1b48e30a6b6ab69c351139

Contents?: true

Size: 708 Bytes

Versions: 15

Compression:

Stored size: 708 Bytes

Contents

require 'sct/command_interface'
require 'sct/command_option'

module Sct

  class YarnCommand
    
    IS_PUBLIC_COMMAND = true
    SYNTAX = 'sct yarn'
    SUMMARY = 'Run yarn commands through SCT'
    EXAMPLE = 'sct yarn dev'
    EXAMPLE_DESCRIPTION = 'sct yarn dev will start the dev installation of the current project'
    DESCRIPTION = "sct will run yarn commands through the local docker installation"
    
    OPTIONS = [
        CommandOption.new("--port PORTNUMBER", Integer, "The portnumber on which the server will be deployed")
    ]

    def execute(args, options)
      require "sct/docker/yarn"
      Sct::Yarn.exec(ARGV[1..(ARGV.length+1)])
    end

    implements CommandInterface
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sct-0.1.18 lib/sct/commands/yarn.rb
sct-0.1.17 lib/sct/commands/yarn.rb
sct-0.1.16 lib/sct/commands/yarn.rb
sct-0.1.15 lib/sct/commands/yarn.rb
sct-0.1.14 lib/sct/commands/yarn.rb
sct-0.1.13 lib/sct/commands/yarn.rb
sct-0.1.12 lib/sct/commands/yarn.rb
sct-0.1.11 lib/sct/commands/yarn.rb
sct-0.1.10 lib/sct/commands/yarn.rb
sct-0.1.9 lib/sct/commands/yarn.rb
sct-0.1.8 lib/sct/commands/yarn.rb
sct-0.1.7 lib/sct/commands/yarn.rb
sct-0.1.6 lib/sct/commands/yarn.rb
sct-0.1.5 lib/sct/commands/yarn.rb
sct-0.1.4 lib/sct/commands/yarn.rb