oode 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -0,0 +1,4 @@
1
+ oode: out of DICE experience
2
+ ============================
3
+
4
+ `oode` is a command which allows
data/Rakefile CHANGED
@@ -23,6 +23,20 @@ end
23
23
  # Tests
24
24
  #
25
25
 
26
+ if command? :turn
27
+ desc "Run tests"
28
+ task :test do
29
+ suffix = "-n #{ENV['TEST']}" if ENV['TEST']
30
+ sh "turn test/*.rb #{suffix}"
31
+ end
32
+ else
33
+ Rake::TestTask.new do |t|
34
+ t.libs << 'lib'
35
+ t.ruby_opts << '-rubygems'
36
+ t.pattern = 'test/**/*_test.rb'
37
+ t.verbose = false
38
+ end
39
+ end
26
40
 
27
41
 
28
42
  #
@@ -9,19 +9,18 @@ module Oode
9
9
  end
10
10
 
11
11
  def print session, directory, printer
12
- command = "lpr -P #{printer} #{remote_path}"
12
+ path = File.join directory, @filename
13
+ command = "lpr -P #{printer} #{path}"
13
14
  session.exec!("ssh student.login #{command}")
14
- #puts command.blue
15
15
  end
16
16
 
17
17
  def clean session, directory
18
- command = "rm #{remote_path}"
18
+ command = "rm -r #{directory}"
19
19
  session.exec!("ssh student.login #{command}")
20
- #puts command.blue
21
20
  end
22
21
 
23
22
  def remote_path
24
- File.join File.expand_path("~/.oode/"), @filename
23
+ File.join File.expand_path("/home/.oode/"), @filename
25
24
  end
26
25
  end
27
26
  end
@@ -1,3 +1,3 @@
1
1
  module Oode
2
- Version = VERSION = '0.0.3'
2
+ Version = VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 3
9
- version: 0.0.3
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Brown
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-26 00:00:00 +01:00
17
+ date: 2010-04-28 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency