fig 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +19 -13
  2. data/lib/fig/os.rb +2 -2
  3. metadata +2 -2
data/README.md CHANGED
@@ -42,12 +42,16 @@ Fig recognizes the following options (not all are implemented yet):
42
42
 
43
43
  ### Flags ###
44
44
 
45
- -d, --debug Print debug info
46
- --force Download/install packages from remote repository, even if up-to-date
47
- -u, --update Download/install packages from remote repository, if out-of-date
48
- -n, --no Automatically answer "n" for any prompt (batch mode)
49
- -y, --yes Automatically answer "y" for any prompt (batch mode)
45
+ -d, --debug Print debug info
46
+ --force Download/install packages from remote repository, even if up-to-date
47
+ -u, --update Download/install packages from remote repository, if out-of-date
48
+ -m, --update-if-missing Download/install packages from remote repository, if not already installed
49
+ -l, --login Authenticate with remote server using username/password (default is anonymous)
50
50
 
51
+ If the `--login` option is supplied, fig will prompt for a username and password and use them
52
+ to authentication against the remote server. If either the `FIG_REMOTE_USER` or `FIG_REMOTE_PASSWORD`
53
+ environment variables are defined, fig will use those values instead of prompting the user. Even if
54
+ both environment variables are defined, fig will not use them unless the `--login` option is supplied.
51
55
 
52
56
  ### Environment Modifiers ###
53
57
 
@@ -61,11 +65,8 @@ The following otpions modify the environment generated by fig:
61
65
 
62
66
  The following commands will be run in the environment created by fig:
63
67
 
64
- -b, --bash Print bash commands so user's environment can be updated (usually used with 'eval')
65
- -g, --get VARIABLE Get value of environment variable
66
- -x, --execute DESCRIPTOR Execute command associated with specified configuration
67
-
68
- -- COMMAND [ARGS...] Execute arbitrary shell command
68
+ -g, --get VARIABLE Get value of environment variable
69
+ -- COMMAND [ARGS...] Execute arbitrary shell command
69
70
 
70
71
  ### Other Commands ###
71
72
 
@@ -74,7 +75,12 @@ Fig also supports the following options, which don't require a fig environment.
74
75
  -?, -h, --help Display this help text
75
76
  --publish Upload package to the remote repository (also installs in local repository)
76
77
  --publish-local Install package in local repository only
77
- --list List the packages installed in local repository
78
+ --list List packages in local repository
79
+ --list-remote List packages in remote repository
80
+
81
+ When using the `--list-remote` command against an FTP server, fig uses a pool of FTP sessions to improve
82
+ performance. By default it opens 16 connections, but that number can be overridden by setting the
83
+ `FIG_FTP_THREADS` environment variable.
78
84
 
79
85
  Examples
80
86
  ========
@@ -140,9 +146,9 @@ Configurations other than "default" can be specified using the "-c" option:
140
146
 
141
147
  ### Packages ###
142
148
 
143
- Now let's say we want to share our little script with the rest of the team by bundling it into a package. The first thing we need to do is specify the location of the remote repository by defining the FIG_REMOTE_URL environment variable. If you just want to play around with fig, you can have it point to localhost:
149
+ Now let's say we want to share our little script with the rest of the team by bundling it into a package. The first thing we need to do is specify the location of the remote repository by defining the `FIG_REMOTE_URL` environment variable. If you just want to play around with fig, you can have it point to localhost:
144
150
 
145
- $ export FIG_REMOTE_URL=ssh://localhost`pwd`/remote
151
+ $ export FIG_REMOTE_URL=ssh://localhost\`pwd\`/remote
146
152
 
147
153
  Before we publish our package, we'll need to tell fig which files we want to include. We do this by using the "resource" statement in our "package.fig" file:
148
154
 
data/lib/fig/os.rb CHANGED
@@ -115,8 +115,8 @@ module Fig
115
115
  ftp.nlst(dirs[pos]).each do |ver|
116
116
  packages << pkg + '/' + ver
117
117
  end
118
- rescue => e
119
- packages << pkg + ' (' + e + ')'
118
+ rescue Net::FTPPermError
119
+ # ignore
120
120
  end
121
121
  pos += num_threads
122
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Foemmel
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2011-05-26 00:00:00 -05:00
12
+ date: 2011-05-27 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency