@@ -65,6 +65,7 @@ function questions(config) {
65
65
{ name : 'Local File System' , value : 'filesystem' } ,
66
66
{ name : 'AWS S3' , value : 's3' } ,
67
67
{ name : 'Google Cloud Storage' , value : 'gcs' } ,
68
+ { name : 'Azure Blob Storage' , value : 'azure' } ,
68
69
] ,
69
70
when : function ( ) {
70
71
return ( [ 'print' , 'filesystem' , 's3' , 'gcs' ] . indexOf ( config . transferTo ) == - 1 ) &&
@@ -152,5 +153,44 @@ function questions(config) {
152
153
! config . gcs_bucket ;
153
154
}
154
155
} ,
156
+
157
+ // Azure settings
158
+ {
159
+ type : 'input' ,
160
+ name : 'azure_account' ,
161
+ message : 'Azure Storage account' ,
162
+ when : function ( answers ) {
163
+ return ( answers . transferTo == 'azure' || config . transferTo == 'azure' ) &&
164
+ ! config . azure_account ;
165
+ }
166
+ } , {
167
+ type : 'input' ,
168
+ name : 'azure_container' ,
169
+ message : 'Azure Storage container' ,
170
+ when : function ( answers ) {
171
+ return ( answers . transferTo == 'azure' || config . transferTo == 'azure' ) &&
172
+ ! config . azure_account &&
173
+ ! config . azure_container ;
174
+ }
175
+ } , {
176
+ type : 'input' ,
177
+ name : 'azure_accessKey' ,
178
+ message : 'Azure Storage access key' ,
179
+ when : function ( answers ) {
180
+ return ( answers . transferTo == 'azure' || config . transferTo == 'azure' ) &&
181
+ ! config . azure_account &&
182
+ ! config . azure_container &&
183
+ ! config . azure_accessKey ;
184
+ }
185
+ } ,
186
+ {
187
+ type : 'input' ,
188
+ name : 'aws_bucketPrefix' ,
189
+ message : 'S3 bucket prefix (optional)' ,
190
+ when : function ( answers ) {
191
+ return ( answers . transferTo == 's3' || config . transferTo == 's3' ) &&
192
+ ! config . aws_bucketPrefix ;
193
+ }
194
+ } ,
155
195
] ) ;
156
196
}
0 commit comments