unit-hosting 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.travis.yml +1 -0
- data/Gemfile +14 -9
- data/README.md +18 -19
- data/Rakefile +3 -11
- data/VERSION +1 -1
- data/lib/unit-hosting.rb +2 -2
- data/lib/unit-hosting/agent.rb +4 -3
- data/lib/unit-hosting/api/base.rb +5 -2
- data/lib/unit-hosting/api/vm.rb +25 -23
- data/lib/unit-hosting/api/vm_group.rb +2 -0
- data/lib/unit-hosting/cache.rb +20 -1
- data/lib/unit-hosting/cli.rb +1 -0
- data/lib/unit-hosting/commands.rb +43 -53
- data/lib/unit-hosting/group.rb +3 -1
- data/spec/spec_helper.rb +50 -0
- data/spec/unit-hosting/agent_spec.rb +119 -0
- data/spec/unit-hosting/api/base_spec.rb +37 -0
- data/spec/unit-hosting/api/vm_group_spec.rb +56 -0
- data/spec/unit-hosting/api/vm_recipe_spec.rb +27 -0
- data/spec/unit-hosting/api/vm_spec.rb +148 -0
- data/spec/unit-hosting/cache_spec.rb +33 -0
- data/spec/unit-hosting/cli_spec.rb +23 -0
- data/spec/unit-hosting/commands_spec.rb +214 -0
- data/spec/unit-hosting/group_spec.rb +64 -0
- data/unit-hosting.gemspec +44 -11
- metadata +140 -19
- data/test/helper.rb +0 -18
- data/test/test_unit-hosting.rb +0 -13
data/test/helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'test/unit'
|
11
|
-
|
12
|
-
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
-
require 'unit-hosting'
|
16
|
-
|
17
|
-
class Test::Unit::TestCase
|
18
|
-
end
|
data/test/test_unit-hosting.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'helper'
|
3
|
-
=begin
|
4
|
-
class TestUnitHosting < Test::Unit::TestCase
|
5
|
-
context "Agent" do
|
6
|
-
should "access" do
|
7
|
-
agent = UnitHosting::Agent.new
|
8
|
-
agent.getr("/")
|
9
|
-
assert(agent.page_body =~ /ユニットホスティング/,"to top page")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
=end
|