sshcoin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ff337d90c1a1b7ad3344de82445905bf358e3a75
4
+ data.tar.gz: e24b606dd1806547f50e4f045036541e4bf216e1
5
+ SHA512:
6
+ metadata.gz: 6276204c64bdaf519a4cc19e3c3108277e1ed1e146b754303f3f16033377587fbb618086dae782859f00d990d96378f1ad74c54a824617251cd3d4f09354833a
7
+ data.tar.gz: a91a6507eb404c8ee72b68f078ab0031688ac15676dfd14dd61c7ba1fd368ab8b5190730d571275f946510398ea8fd9555c84c0b2641f89fa550ea56d1f6e261
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sshcoin.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Nathan Amick
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # sshcoin
2
+
3
+ *Decentralized hosting for autonomous applications*
4
+
5
+ ## Overview
6
+
7
+ Sshcoin is tool that autonomous applications can use to find and purchase
8
+ hosting from multiple providers.
9
+
10
+ Any company or individual may sell server hosting by exposing an API
11
+ that conforms to the sshcoin standard.
12
+
13
+ An autonomous application that provides a useful service can petition donations
14
+ from its users. The application can use sshcoin to manage its money and move
15
+ quickly between providers to resist takedown and censorship.
16
+
17
+ Sshcoin uses BitMessage to discover providers and Bitcoin to purchase servers.
18
+
19
+ ## Installation
20
+
21
+ Add this line to your application's Gemfile:
22
+
23
+ gem 'sshcoin'
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install sshcoin
32
+
33
+ ## Usage
34
+
35
+ ```
36
+ SYNOPSIS
37
+ sshcoin <command> [<subcommand>] [<options>]
38
+
39
+ PROVIDER COMMANDS
40
+ sshcoin providers
41
+ Show a list of providers that support the sshcoin api
42
+
43
+ sshcoin provider plans <provider_id>
44
+ Show a list of plans offered by this provider. The list includes
45
+ plan_id, price_per_day, disk_size, memory and as well as other
46
+ information from the provider.
47
+
48
+ SERVER COMMANDS
49
+ sshcoin servers
50
+ Show a list of our servers. List includes hostname, ip_address, provider_id, server_id
51
+
52
+ sshcoin server purchase <provider_id> <plan_id> <number_of_days>
53
+ Buy a server plan. Request a Bitcoin address for this payment. Pay
54
+ the price_per_day times the number_of_days.
55
+
56
+ sshcoin server renew <provider_id> <server_id> <number_of_days>
57
+ Renew a server. Request a Bitcoin address for this payment. Pay the
58
+ price_per_day times the number_of_days.
59
+
60
+ sshcoin server subscribe <provider_id> <server_id> [<number_of_days>] [<max_days>]
61
+ Subscribe to a server. Sets server to be renewed every number_of_days
62
+ (default 1) for max_days (default unlimited)
63
+
64
+ sshcoin authorize <server_id>
65
+ Create a keypair and install public key on this server
66
+
67
+ sshcoin ssh <server_id>
68
+ Connect to this server as root
69
+
70
+ WALLET COMMANDS
71
+
72
+ sshcoin wallets
73
+ Show a list of our wallets. List includes wallet_id, name, balance
74
+
75
+ sshcoin wallet generate [<name>]
76
+ Generate a new wallet with optional name.
77
+
78
+ sshcoin wallet send <wallet_id> <amount> <bitcoin_address>
79
+ Send the amount of BTC from this wallet.
80
+
81
+ sshcoin wallet destroy <wallet_id>
82
+ Delete an empty wallet.
83
+
84
+ ADDRESS COMMANDS
85
+ sshcoin address generate <wallet_id> [<label>]
86
+ Generate a new address in this wallet with optional label.
87
+
88
+ sshcoin addresses <wallet_id>
89
+ Show a list of addresses in this wallet.
90
+ ```
91
+
92
+ ## Contributing
93
+
94
+ 1. Fork it
95
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
96
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
97
+ 4. Push to the branch (`git push origin my-new-feature`)
98
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/sshcoin.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "sshcoin/version"
2
+
3
+ module Sshcoin
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Sshcoin
2
+ VERSION = "0.0.1"
3
+ end
data/sshcoin.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sshcoin/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sshcoin"
8
+ spec.version = Sshcoin::VERSION
9
+ spec.authors = ["Nathan Amick"]
10
+ spec.email = ["github@nathanamick.com"]
11
+ spec.description = %q{Decentralized hosting for autonomous applications}
12
+ spec.summary = %q{Sshcoin is tool that autonomous applications can use to find and purchase hosting from multiple providers.}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sshcoin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nathan Amick
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Decentralized hosting for autonomous applications
42
+ email:
43
+ - github@nathanamick.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - lib/sshcoin.rb
54
+ - lib/sshcoin/version.rb
55
+ - sshcoin.gemspec
56
+ homepage: ''
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.0.6
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: Sshcoin is tool that autonomous applications can use to find and purchase
80
+ hosting from multiple providers.
81
+ test_files: []
82
+ has_rdoc: