airake 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.11 2007-10-05
2
+
3
+ * Fixing fcsh error message
4
+ * Documentation fixes
5
+
1
6
  == 0.1.10 2007-10-01
2
7
 
3
8
  * Moving fcsh tasks into own namespace. New tasks names are: fcsh:start, fcsh:stop, fcsh:restart
data/Notes.txt CHANGED
@@ -1,3 +1,5 @@
1
+ == Dev notes
2
+
1
3
  Regenerating manifest:
2
4
 
3
- rake check_manifest | patch
5
+ rake check_manifest | patch
@@ -1,7 +1,6 @@
1
- ######################################
2
- # Begin Daemonize code provided by Travis Whitton
1
+ # Daemonize code provided by Travis Whitton
2
+ #
3
3
  # http://grub.ath.cx/daemonize/
4
-
5
4
  module Daemonize
6
5
  #VERSION = "0.1.2"
7
6
 
@@ -24,6 +23,7 @@ module Daemonize
24
23
  end
25
24
 
26
25
  # This method causes the current running process to become a daemon
26
+ #
27
27
  # If closefd is true, all existing file descriptors are closed
28
28
  def daemonize(oldmode=0, closefd=false)
29
29
  srand # Split rand streams between spawning and daemonized process
@@ -57,7 +57,4 @@ module Daemonize
57
57
  STDERR.reopen STDOUT # STDOUT/STDERR should go to a logfile
58
58
  return oldmode ? sess_id : 0 # Return value is mostly irrelevant
59
59
  end
60
- end
61
-
62
- # End Daemonize
63
- ######################################
60
+ end
data/lib/airake/fcsh.rb CHANGED
@@ -47,7 +47,7 @@ module PatternPark
47
47
  end
48
48
  end
49
49
  rescue StandardError => e
50
- raise FCSHError.new("[FCSH ERROR] Was unable to connect to a running fcshd process for stopping")
50
+ raise FCSHError.new("[FCSH ERROR] Was unable to connect to a running fcsh process for stopping")
51
51
  end
52
52
  end
53
53
 
@@ -15,10 +15,12 @@ module Airake
15
15
  Options = [ :mxmlc_path, :adt_path, :bin_dir, :src_dir, :lib_dir, :test_dir,
16
16
  :appxml_path, :air_path, :swf_path, :debug, :mxmlc_command, :adt_command,
17
17
  :adl_command, :mxmlc_extra_opts, :adl_extra_opts, :adt_extra_opts ]
18
-
19
- # Settings
20
- # Specify base directory, the path to Project.mxml (relative) and options.
21
- # Options override default settings, see Options class var.
18
+
19
+ # Construct project
20
+ #
21
+ # base_dir:: Base (project) directory
22
+ # mxml_path: Path to the project.mxml (relative)
23
+ # options:: Override default paths, commands, extra opts, etc; See Options class var
22
24
  def initialize(base_dir, mxml_path, options = {})
23
25
  @base_dir = base_dir
24
26
  @mxml_path = mxml_path
@@ -51,7 +53,7 @@ module Airake
51
53
  @adl_command = options[:adl_command] || load_adl_command
52
54
  end
53
55
 
54
- # Run the ADT
56
+ # Run the Adobe Developer Tool
55
57
  def run_adt
56
58
  run(adt_command)
57
59
  end
@@ -67,8 +69,10 @@ module Airake
67
69
  end
68
70
 
69
71
  # Create project using parameters from rake ENV
72
+ #
70
73
  # You can set any of the options via ENV; just upcase it. <tt>:foo_bar => ENV["FOO_BAR"]</tt>
71
- # Booleans must be "true" for true and false for anything else.
74
+ #
75
+ # Booleans must be "true" for true
72
76
  def self.new_from_rake(env, is_test = false)
73
77
  base_dir = env["BASE_DIR"]
74
78
  mxml = is_test ? env["MXML_TEST"] : env["MXML"]
@@ -135,10 +139,12 @@ module Airake
135
139
  "-debug=#{@debug}" if @debug
136
140
  end
137
141
 
142
+ # Get relative path from base (project) directory
138
143
  def relative_path(path)
139
144
  Pathname.new(path).relative_path_from(Pathname.new(@base_dir))
140
145
  end
141
146
 
147
+ # Handle system command failure
142
148
  def fail(cmd, error_status)
143
149
  fail_message = <<-EOS
144
150
 
@@ -155,6 +161,7 @@ module Airake
155
161
  raise "[#{error_status}] Failed to run command: #{cmd}"
156
162
  end
157
163
 
164
+ # Run the (system) command
158
165
  def run(cmd)
159
166
  puts "Running: #{cmd}"
160
167
  system cmd or fail(cmd, $?)
@@ -7,7 +7,7 @@ namespace :air do
7
7
  fcsh = PatternPark::FCSH.new_from_rake(ENV)
8
8
  fcsh.execute([ project.base_dir, project.mxmlc_command ])
9
9
  rescue PatternPark::FCSHConnectError => e
10
- puts "Cannot connect to FCSHD (start by running: rake air:fcshd); Continuing compilation..."
10
+ puts "Cannot connect to FCSHD (start by running: rake fcsh:start); Continuing compilation..."
11
11
  project.run_mxmlc
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
- # Deprecated
2
- # See fsch.rake
1
+ # Deprecated; see fsch.rake
2
+
3
3
  namespace :air do
4
4
 
5
5
  desc "Start the FCSHD process (DEPRECATED)"
@@ -2,7 +2,7 @@ module Airake #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 10
5
+ TINY = 11
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: airake
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.10
7
- date: 2007-10-01 00:00:00 -04:00
6
+ version: 0.1.11
7
+ date: 2007-10-05 00:00:00 -04:00
8
8
  summary: Adobe AIR tasks
9
9
  require_paths:
10
10
  - lib