tunnel-dummy-vmc-plugin 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +47 -0
 - data/lib/tunnel-dummy-vmc-plugin/plugin.rb +17 -0
 - data/lib/tunnel-dummy-vmc-plugin/version.rb +3 -0
 - metadata +83 -0
 
    
        data/Rakefile
    ADDED
    
    | 
         @@ -0,0 +1,47 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "rake"
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
         
     | 
| 
      
 4 
     | 
    
         
            +
            require "tunnel-dummy-vmc-plugin/version"
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            task :default => :spec
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            desc "Run specs"
         
     | 
| 
      
 9 
     | 
    
         
            +
            task :spec => ["bundler:install", "test:spec"]
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            desc "Run integration tests"
         
     | 
| 
      
 12 
     | 
    
         
            +
            task :test => ["bundler:install", "test:integration"]
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            task :build do
         
     | 
| 
      
 15 
     | 
    
         
            +
              sh "gem build tunnel-dummy-vmc-plugin.gemspec"
         
     | 
| 
      
 16 
     | 
    
         
            +
            end
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            task :install => :build do
         
     | 
| 
      
 19 
     | 
    
         
            +
              sh "gem install --local tunnel-dummy-vmc-plugin-#{VMCTunnelDummy::VERSION}.gem"
         
     | 
| 
      
 20 
     | 
    
         
            +
            end
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            task :uninstall do
         
     | 
| 
      
 23 
     | 
    
         
            +
              sh "gem uninstall tunnel-dummy-vmc-plugin"
         
     | 
| 
      
 24 
     | 
    
         
            +
            end
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            task :reinstall => [:uninstall, :install]
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            task :release => :build do
         
     | 
| 
      
 29 
     | 
    
         
            +
              sh "gem push tunnel-dummy-vmc-plugin-#{VMCTunnelDummy::VERSION}.gem"
         
     | 
| 
      
 30 
     | 
    
         
            +
            end
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
            namespace "bundler" do
         
     | 
| 
      
 33 
     | 
    
         
            +
              desc "Install gems"
         
     | 
| 
      
 34 
     | 
    
         
            +
              task "install" do
         
     | 
| 
      
 35 
     | 
    
         
            +
                sh("bundle install")
         
     | 
| 
      
 36 
     | 
    
         
            +
              end
         
     | 
| 
      
 37 
     | 
    
         
            +
            end
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
            namespace "test" do
         
     | 
| 
      
 40 
     | 
    
         
            +
              task "spec" do |t|
         
     | 
| 
      
 41 
     | 
    
         
            +
                # nothing
         
     | 
| 
      
 42 
     | 
    
         
            +
              end
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
              task "integration" do |t|
         
     | 
| 
      
 45 
     | 
    
         
            +
                sh("cd spec && bundle exec rake spec")
         
     | 
| 
      
 46 
     | 
    
         
            +
              end
         
     | 
| 
      
 47 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,17 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "vmc/cli"
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module VMCTunnelDummy
         
     | 
| 
      
 4 
     | 
    
         
            +
              class TunnelCommand < VMC::CLI
         
     | 
| 
      
 5 
     | 
    
         
            +
                desc "Tells you to install tunnel-vmc-plugin"
         
     | 
| 
      
 6 
     | 
    
         
            +
                group :services, :manage
         
     | 
| 
      
 7 
     | 
    
         
            +
                input :instance, :argument => :optional
         
     | 
| 
      
 8 
     | 
    
         
            +
                input :client, :argument => :optional
         
     | 
| 
      
 9 
     | 
    
         
            +
                input :port, :default => 10000
         
     | 
| 
      
 10 
     | 
    
         
            +
                def tunnel
         
     | 
| 
      
 11 
     | 
    
         
            +
                  err "Please install 'tunnel-vmc-plugin' to enable tunnelling."
         
     | 
| 
      
 12 
     | 
    
         
            +
                  line ""
         
     | 
| 
      
 13 
     | 
    
         
            +
                  line "Pardon the extra step; it can't be a direct dependency because it"
         
     | 
| 
      
 14 
     | 
    
         
            +
                  line "requires native compilation."
         
     | 
| 
      
 15 
     | 
    
         
            +
                end
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,83 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification 
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: tunnel-dummy-vmc-plugin
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version 
         
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 29
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 6 
     | 
    
         
            +
              segments: 
         
     | 
| 
      
 7 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 8 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 9 
     | 
    
         
            +
              - 1
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.0.1
         
     | 
| 
      
 11 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 12 
     | 
    
         
            +
            authors: 
         
     | 
| 
      
 13 
     | 
    
         
            +
            - Alex Suraci
         
     | 
| 
      
 14 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 15 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 16 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2012-08-28 00:00:00 Z
         
     | 
| 
      
 19 
     | 
    
         
            +
            dependencies: 
         
     | 
| 
      
 20 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 21 
     | 
    
         
            +
              name: cfoundry
         
     | 
| 
      
 22 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 23 
     | 
    
         
            +
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 24 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 25 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 26 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 27 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 28 
     | 
    
         
            +
                    hash: 15
         
     | 
| 
      
 29 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 30 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 31 
     | 
    
         
            +
                    - 3
         
     | 
| 
      
 32 
     | 
    
         
            +
                    - 14
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: 0.3.14
         
     | 
| 
      
 34 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 35 
     | 
    
         
            +
              version_requirements: *id001
         
     | 
| 
      
 36 
     | 
    
         
            +
            description: 
         
     | 
| 
      
 37 
     | 
    
         
            +
            email: 
         
     | 
| 
      
 38 
     | 
    
         
            +
            - asuraci@vmware.com
         
     | 
| 
      
 39 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
            files: 
         
     | 
| 
      
 46 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 47 
     | 
    
         
            +
            - lib/tunnel-dummy-vmc-plugin/plugin.rb
         
     | 
| 
      
 48 
     | 
    
         
            +
            - lib/tunnel-dummy-vmc-plugin/version.rb
         
     | 
| 
      
 49 
     | 
    
         
            +
            homepage: http://cloudfoundry.com/
         
     | 
| 
      
 50 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 53 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
            require_paths: 
         
     | 
| 
      
 56 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 57 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 58 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 59 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 60 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 61 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 62 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
      
 63 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 64 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 65 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 66 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 67 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 68 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 69 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 70 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 71 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
      
 72 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 73 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 74 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 75 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
            rubyforge_project: tunnel-dummy-vmc-plugin
         
     | 
| 
      
 78 
     | 
    
         
            +
            rubygems_version: 1.8.24
         
     | 
| 
      
 79 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 80 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 81 
     | 
    
         
            +
            summary: Provides a fake tunnel command that tells you to install the real plugin.
         
     | 
| 
      
 82 
     | 
    
         
            +
            test_files: []
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     |