simple_perf 0.0.2 → 0.0.3
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/.ruby-gemset +1 -0
 - data/.ruby-version +1 -0
 - data/README.md +5 -4
 - data/lib/simple_perf/cli/create.rb +2 -7
 - data/lib/simple_perf/cli/create_gatling.rb +2 -7
 - data/lib/simple_perf/cli/deploy.rb +1 -1
 - data/lib/simple_perf/cli/deploy_gatling.rb +1 -1
 - data/lib/simple_perf/cli/results.rb +2 -2
 - data/lib/simple_perf/cli/start.rb +1 -1
 - data/lib/simple_perf/cli/start_gatling.rb +1 -1
 - data/lib/simple_perf/cli/status.rb +2 -2
 - data/lib/simple_perf/cli/stop.rb +2 -2
 - data/lib/simple_perf/version.rb +1 -1
 - metadata +4 -3
 - data/.rvmrc +0 -1
 
    
        data/.ruby-gemset
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            simple_perf
         
     | 
    
        data/.ruby-version
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ruby-1.9.3-p385
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            I use CAP for distributed jmeter performance testing in AWS EC2.
         
     | 
| 
      
 1 
     | 
    
         
            +
            I use CAP for distributed jmeter or Gatling performance testing in AWS EC2.
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            Getting Started
         
     | 
| 
       4 
4 
     | 
    
         
             
            ---------------
         
     | 
| 
         @@ -13,12 +13,13 @@ Create a file **~/.simple_deploy.yml** and include within it: 
     | 
|
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
            ```
         
     | 
| 
       15 
15 
     | 
    
         
             
            environments:
         
     | 
| 
       16 
     | 
    
         
            -
               
     | 
| 
      
 16 
     | 
    
         
            +
              preprod_us_east_1:
         
     | 
| 
       17 
17 
     | 
    
         
             
                access_key: XXX
         
     | 
| 
       18 
18 
     | 
    
         
             
                secret_key: yyy
         
     | 
| 
       19 
19 
     | 
    
         
             
                region: us-east-1
         
     | 
| 
       20 
     | 
    
         
            -
                user:  
     | 
| 
       21 
     | 
    
         
            -
                 
     | 
| 
      
 20 
     | 
    
         
            +
                user: ec2-user
         
     | 
| 
      
 21 
     | 
    
         
            +
                aws_keypair: EC2 Key Pair Name
         
     | 
| 
      
 22 
     | 
    
         
            +
                local_pem: ~/keypair.pem
         
     | 
| 
       22 
23 
     | 
    
         
             
            ```
         
     | 
| 
       23 
24 
     | 
    
         | 
| 
       24 
25 
     | 
    
         
             
            Commands
         
     | 
| 
         @@ -37,7 +37,7 @@ EOS 
     | 
|
| 
       37 
37 
     | 
    
         
             
                        ' -n ' + opts[:name] +
         
     | 
| 
       38 
38 
     | 
    
         
             
                        ' -t '+ gem_root + '/cloud_formation_templates/instance_group.json' +
         
     | 
| 
       39 
39 
     | 
    
         
             
                        ' -a Description="EC2 JMeter Instance"' +
         
     | 
| 
       40 
     | 
    
         
            -
                        ' -a KeyName=' +   
     | 
| 
      
 40 
     | 
    
         
            +
                        ' -a KeyName=' +  config['aws_keypair'] +
         
     | 
| 
       41 
41 
     | 
    
         
             
                        ' -a AmiId=' +  opts[:ami] +
         
     | 
| 
       42 
42 
     | 
    
         
             
                        ' -a S3BucketName=' + opts[:s3bucket] +
         
     | 
| 
       43 
43 
     | 
    
         
             
                        ' -a InstanceType=' + opts[:instancetype]
         
     | 
| 
         @@ -45,11 +45,6 @@ EOS 
     | 
|
| 
       45 
45 
     | 
    
         
             
                    Shared::pretty_print `#{command}`
         
     | 
| 
       46 
46 
     | 
    
         
             
                  end
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
                  def extract_keyname(fullpath_keypair)
         
     | 
| 
       49 
     | 
    
         
            -
                    a = fullpath_keypair.split('/')
         
     | 
| 
       50 
     | 
    
         
            -
                    a[a.length-1].sub('.pem', '')
         
     | 
| 
       51 
     | 
    
         
            -
                  end
         
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
48 
     | 
    
         
             
                end
         
     | 
| 
       54 
49 
     | 
    
         
             
              end
         
     | 
| 
       55 
     | 
    
         
            -
            end
         
     | 
| 
      
 50 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -37,7 +37,7 @@ EOS 
     | 
|
| 
       37 
37 
     | 
    
         
             
                        ' -n ' + opts[:name] +
         
     | 
| 
       38 
38 
     | 
    
         
             
                        ' -t '+ gem_root + '/cloud_formation_templates/instance_group_gatling.json' +
         
     | 
| 
       39 
39 
     | 
    
         
             
                        ' -a Description="EC2 Gatling Instance"' +
         
     | 
| 
       40 
     | 
    
         
            -
                        ' -a KeyName=' +   
     | 
| 
      
 40 
     | 
    
         
            +
                        ' -a KeyName=' +  config['aws_keypair'] +
         
     | 
| 
       41 
41 
     | 
    
         
             
                        ' -a AmiId=' +  opts[:ami] +
         
     | 
| 
       42 
42 
     | 
    
         
             
                        ' -a S3BucketName=' + opts[:s3bucket] +
         
     | 
| 
       43 
43 
     | 
    
         
             
                        ' -a InstanceType=' + opts[:instancetype]
         
     | 
| 
         @@ -45,11 +45,6 @@ EOS 
     | 
|
| 
       45 
45 
     | 
    
         
             
                    Shared::pretty_print `#{command}`
         
     | 
| 
       46 
46 
     | 
    
         
             
                  end
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
                  def extract_keyname(fullpath_keypair)
         
     | 
| 
       49 
     | 
    
         
            -
                    a = fullpath_keypair.split('/')
         
     | 
| 
       50 
     | 
    
         
            -
                    a[a.length-1].sub('.pem', '')
         
     | 
| 
       51 
     | 
    
         
            -
                  end
         
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
48 
     | 
    
         
             
                end
         
     | 
| 
       54 
49 
     | 
    
         
             
              end
         
     | 
| 
       55 
     | 
    
         
            -
            end
         
     | 
| 
      
 50 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -24,7 +24,7 @@ EOS 
     | 
|
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
                    config = Config.new.environment opts[:environment]
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
                    ENV['SIMPLE_DEPLOY_SSH_KEY'] = config[' 
     | 
| 
      
 27 
     | 
    
         
            +
                    ENV['SIMPLE_DEPLOY_SSH_KEY'] = config['local_pem']
         
     | 
| 
       28 
28 
     | 
    
         
             
                    ENV['SIMPLE_DEPLOY_SSH_USER'] = config['user']
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
30 
     | 
    
         
             
                    grep_command = %q['grep "Generate Summary Results +" /home/ec2-user/jmeter_test_files/jmeter.log | tail -n 3']
         
     | 
| 
         @@ -39,4 +39,4 @@ EOS 
     | 
|
| 
       39 
39 
     | 
    
         
             
                  end
         
     | 
| 
       40 
40 
     | 
    
         
             
                end
         
     | 
| 
       41 
41 
     | 
    
         
             
              end
         
     | 
| 
       42 
     | 
    
         
            -
            end
         
     | 
| 
      
 42 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -24,7 +24,7 @@ EOS 
     | 
|
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
                    config = Config.new.environment opts[:environment]
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
                    ENV['SIMPLE_DEPLOY_SSH_KEY'] = config[' 
     | 
| 
      
 27 
     | 
    
         
            +
                    ENV['SIMPLE_DEPLOY_SSH_KEY'] = config['local_pem']
         
     | 
| 
       28 
28 
     | 
    
         
             
                    ENV['SIMPLE_DEPLOY_SSH_USER'] = config['user']
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
30 
     | 
    
         
             
                    command = 'simple_deploy execute' +
         
     | 
| 
         @@ -37,4 +37,4 @@ EOS 
     | 
|
| 
       37 
37 
     | 
    
         
             
                  end
         
     | 
| 
       38 
38 
     | 
    
         
             
                end
         
     | 
| 
       39 
39 
     | 
    
         
             
              end
         
     | 
| 
       40 
     | 
    
         
            -
            end
         
     | 
| 
      
 40 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/simple_perf/cli/stop.rb
    CHANGED
    
    | 
         @@ -24,7 +24,7 @@ EOS 
     | 
|
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
                    config = Config.new.environment opts[:environment]
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
                    ENV['SIMPLE_DEPLOY_SSH_KEY'] = config[' 
     | 
| 
      
 27 
     | 
    
         
            +
                    ENV['SIMPLE_DEPLOY_SSH_KEY'] = config['local_pem']
         
     | 
| 
       28 
28 
     | 
    
         
             
                    ENV['SIMPLE_DEPLOY_SSH_USER'] = config['user']
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
30 
     | 
    
         
             
                    command = 'simple_deploy execute' +
         
     | 
| 
         @@ -37,4 +37,4 @@ EOS 
     | 
|
| 
       37 
37 
     | 
    
         
             
                  end
         
     | 
| 
       38 
38 
     | 
    
         
             
                end
         
     | 
| 
       39 
39 
     | 
    
         
             
              end
         
     | 
| 
       40 
     | 
    
         
            -
            end
         
     | 
| 
      
 40 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/simple_perf/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: simple_perf
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2013- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2013-08-28 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: rake
         
     | 
| 
         @@ -100,7 +100,8 @@ extensions: [] 
     | 
|
| 
       100 
100 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       101 
101 
     | 
    
         
             
            files:
         
     | 
| 
       102 
102 
     | 
    
         
             
            - .gitignore
         
     | 
| 
       103 
     | 
    
         
            -
            - . 
     | 
| 
      
 103 
     | 
    
         
            +
            - .ruby-gemset
         
     | 
| 
      
 104 
     | 
    
         
            +
            - .ruby-version
         
     | 
| 
       104 
105 
     | 
    
         
             
            - CHANGELOG
         
     | 
| 
       105 
106 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       106 
107 
     | 
    
         
             
            - LICENSE
         
     | 
    
        data/.rvmrc
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            rvm use ruby-1.9.3-p385@simple_perf --create
         
     |